Check if the Intent is null before getting data
This commit is contained in:
parent
9d4cde2946
commit
a13f75a864
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue