mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
prevent NPE if extras is null
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
6f70ebd3a1
commit
f192bf5813
1 changed files with 7 additions and 1 deletions
|
@ -292,7 +292,13 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
|
||||
/// get input values
|
||||
mAction = getIntent().getByteExtra(EXTRA_ACTION, ACTION_CREATE);
|
||||
mAccount = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT);
|
||||
|
||||
Bundle extras = getIntent().getExtras();
|
||||
|
||||
if (extras != null) {
|
||||
mAccount = extras.getParcelable(EXTRA_ACCOUNT);
|
||||
}
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
mWaitingForOpId = savedInstanceState.getLong(KEY_WAITING_FOR_OP_ID);
|
||||
mIsFirstAuthAttempt = savedInstanceState.getBoolean(KEY_AUTH_IS_FIRST_ATTEMPT_TAG);
|
||||
|
|
Loading…
Reference in a new issue