Merge "KeySetManagerService: prevent NPE" am: c66327149a am: 51ad0f67d2 am: 7adb348796
am: 8734438320
Change-Id: I8618393edf8c2c41663dfb457588ac4f9511239c
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user