Merge "KeySetManagerService: prevent NPE"

am: c66327149a

Change-Id: I09d6fb3e2644ab9330b10bd67c44e61a204e589b
This commit is contained in:
Thecrazyskull
2017-01-29 17:22:13 +00:00
committed by android-build-merger

View File

@@ -287,7 +287,7 @@ public class KeySetManagerService {
for (int i = 0; i < defMapSize; i++) {
String alias = definedMapping.keyAt(i);
ArraySet<PublicKey> pubKeys = definedMapping.valueAt(i);
if (alias != null && pubKeys != null || pubKeys.size() > 0) {
if (alias != null && pubKeys != null && pubKeys.size() > 0) {
KeySetHandle ks = addKeySetLPw(pubKeys);
newKeySetAliases.put(alias, ks.getId());
}