Commit 0d8c2f26 authored by Thomas's avatar Thomas
Browse files

Fix #155 - Avoid a crash when replying and account is null

parent f51c24df
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -189,6 +189,11 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
        if (account == null) {
            account = BaseMainActivity.accountWeakReference.get();
        }
        if (account == null) {
            Toasty.error(ComposeActivity.this, getString(R.string.toast_error), Toasty.LENGTH_SHORT).show();
            finish();
            return;
        }
        if (instance == null) {
            instance = account.instance;
        }