mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 11:35:07 -05:00
null check
This commit is contained in:
parent
b4382db263
commit
32b2711e61
@ -272,6 +272,7 @@ public class PgpImportExport {
|
|||||||
}
|
}
|
||||||
newPubRing = PGPPublicKeyRing.insertPublicKey(newPubRing, key);
|
newPubRing = PGPPublicKeyRing.insertPublicKey(newPubRing, key);
|
||||||
}
|
}
|
||||||
|
if (newPubRing != null)
|
||||||
ProviderHelper.saveKeyRing(mContext, newPubRing);
|
ProviderHelper.saveKeyRing(mContext, newPubRing);
|
||||||
// TODO: remove status returns, use exceptions!
|
// TODO: remove status returns, use exceptions!
|
||||||
status = Id.return_value.ok;
|
status = Id.return_value.ok;
|
||||||
|
Loading…
Reference in New Issue
Block a user