From d9e92b13b651edc24740182ad6bf701316c0fd23 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 31 Jan 2023 18:16:01 +0100 Subject: [PATCH] avoid a crash --- app/src/main/java/app/fedilab/android/BaseMainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/BaseMainActivity.java index cb70a91c..0adb7f72 100644 --- a/app/src/main/java/app/fedilab/android/BaseMainActivity.java +++ b/app/src/main/java/app/fedilab/android/BaseMainActivity.java @@ -698,6 +698,9 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt } else { try { BaseAccount account = new Account(activity).getUniqAccount(userIdIntent, instanceIntent); + if (account == null) { + return; + } SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(activity); headerMenuOpen = false; String acct = "";