Check if the Intent is null before getting data

This commit is contained in:
Jakob Nixdorf 2018-02-09 10:50:14 +01:00
parent 9d4cde2946
commit a13f75a864
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -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);
}
}