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

Commit 7d9481d8 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 6ff33fac 92491e8e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -676,6 +676,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];
                    mSubIdForSlot[subInfo.slotId] = subInfo.subId;