diff --git a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java index 32a202bfda..e3a771a337 100644 --- a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -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);