null check

This commit is contained in:
Ashley Hughes 2013-09-17 18:31:02 +01:00
parent b4382db263
commit 32b2711e61

View File

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