drop invalid user ids and add fatal case(s)

This commit is contained in:
Vincent Breitmoser
2014-06-16 22:32:17 +02:00
parent 2f0e70587d
commit ffea551afc
4 changed files with 23 additions and 5 deletions

View File

@@ -298,6 +298,9 @@ public class ProviderHelper {
// Canonicalize this key, to assert a number of assumptions made about it.
keyRing = keyRing.canonicalize(mLog, mIndent);
if (keyRing == null) {
return new SaveKeyringResult(SaveKeyringResult.RESULT_ERROR, mLog);
}
UncachedPublicKey masterKey = keyRing.getPublicKey();