mirror of
https://github.com/moparisthebest/k-9
synced 2025-03-03 01:51:49 -05:00
Fixed NullPointerException if home button was pressed in AccountSetupBasics activity and no account object was created yet.
This commit is contained in:
parent
96489049d9
commit
d90e4020be
@ -106,7 +106,10 @@ public class AccountSetupBasics extends K9Activity
|
||||
public void onSaveInstanceState(Bundle outState)
|
||||
{
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putString(EXTRA_ACCOUNT, mAccount.getUuid());
|
||||
if (mAccount != null)
|
||||
{
|
||||
outState.putString(EXTRA_ACCOUNT, mAccount.getUuid());
|
||||
}
|
||||
if (mProvider != null)
|
||||
{
|
||||
outState.putSerializable(STATE_KEY_PROVIDER, mProvider);
|
||||
|
Loading…
x
Reference in New Issue
Block a user