Fixed issue where setting a passphrase to null later causes a NullPointerException.

This commit is contained in:
JesperBK 2015-03-23 11:17:01 +01:00
parent c7efaacc9d
commit 5bdac11ef8

View File

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