Merge "KeySetManagerService: prevent NPE"
am: c66327149a
Change-Id: I09d6fb3e2644ab9330b10bd67c44e61a204e589b
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