mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
Fixed issue where setting a passphrase to null later causes a NullPointerException.
This commit is contained in:
parent
c7efaacc9d
commit
5bdac11ef8
@ -136,7 +136,9 @@ public class EncryptTextActivity extends EncryptActivity implements EncryptActiv
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPassphrase(Passphrase passphrase) {
|
public void setPassphrase(Passphrase passphrase) {
|
||||||
|
if (mPassphrase != null) {
|
||||||
mPassphrase.removeFromMemory();
|
mPassphrase.removeFromMemory();
|
||||||
|
}
|
||||||
mPassphrase = passphrase;
|
mPassphrase = passphrase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user