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

Commit 7dc0e392 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Keyguard: Avoid array index out of bounds exception"

parents 97da2135 7f10b8ea
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -679,6 +679,9 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
            for (SubInfoRecord subInfo: activeSubInfos) {
                //subId for the slot initially initiazed to invalid value
                //Got intent with correct subId for the slot now.
                if (subInfo.slotId > getNumPhones() - 1) {
                    continue;
                }
                if (mSubIdForSlot[subInfo.slotId] != subInfo.subId) {
                    long subId = mSubIdForSlot[subInfo.slotId];
                    mSimState.put(subInfo.subId, mSimState.get(subId));