null check

This commit is contained in:
Ashley Hughes committed 2013-09-17 18:31:02 +01:00
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;
}