null check
This commit is contained in:
1 parent
b4382db263
commit
32b2711e61
1 file changed
+2
-1
@@ -272,7 +272,8 @@ public class PgpImportExport {
|
||||
}
|
||||
newPubRing = PGPPublicKeyRing.insertPublicKey(newPubRing, key);
|
||||
}
|
||||
ProviderHelper.saveKeyRing(mContext, newPubRing);
|
||||
if (newPubRing != null)
|
||||
ProviderHelper.saveKeyRing(mContext, newPubRing);
|
||||
// TODO: remove status returns, use exceptions!
|
||||
status = Id.return_value.ok;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user