1
0
Fork 1
mirror of https://codeberg.org/tom79/Fedilab.git synced 2025-04-06 07:00:01 +03:00

Fix - Avoid a crash in conversation activity

This commit is contained in:
Thomas 2022-06-08 09:17:27 +02:00
parent 9c430e4a22
commit b96996ddde

View file

@ -78,7 +78,9 @@ public class ContextActivity extends BaseActivity {
finish();
return;
}
MastodonHelper.loadPPMastodon(binding.profilePicture, BaseMainActivity.accountWeakReference.get().mastodon_account);
if (BaseMainActivity.accountWeakReference.get() != null) {
MastodonHelper.loadPPMastodon(binding.profilePicture, BaseMainActivity.accountWeakReference.get().mastodon_account);
}
Bundle bundle = new Bundle();
new Thread(() -> {
focusedStatus = SpannableHelper.convertStatus(getApplication().getApplicationContext(), focusedStatus);