Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51ad0f67 authored by Thecrazyskull's avatar Thecrazyskull Committed by android-build-merger
Browse files

Merge "KeySetManagerService: prevent NPE"

am: c6632714

Change-Id: I09d6fb3e2644ab9330b10bd67c44e61a204e589b
parents fc5430a3 c6632714
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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());
            }