forked from mirrors/Fedilab
avoid a crash
This commit is contained in:
parent
833ea5d0c3
commit
d9e92b13b6
1 changed files with 3 additions and 0 deletions
|
@ -698,6 +698,9 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
BaseAccount account = new Account(activity).getUniqAccount(userIdIntent, instanceIntent);
|
BaseAccount account = new Account(activity).getUniqAccount(userIdIntent, instanceIntent);
|
||||||
|
if (account == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(activity);
|
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||||
headerMenuOpen = false;
|
headerMenuOpen = false;
|
||||||
String acct = "";
|
String acct = "";
|
||||||
|
|
Loading…
Reference in a new issue