diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java index 2956144d..09d49a3a 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java @@ -398,7 +398,11 @@ public class MainActivity extends BaseActivity } else { requireAuthentication = false; - byte[] authKey = intent.getByteArrayExtra(Constants.EXTRA_AUTH_PASSWORD_KEY); + byte[] authKey = null; + + if (intent != null) + authKey = intent.getByteArrayExtra(Constants.EXTRA_AUTH_PASSWORD_KEY); + updateEncryption(authKey); } }