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

Commit b02007fb authored by Sandeep Gutta's avatar Sandeep Gutta Committed by android-build-merger
Browse files

Merge "Add sanity check to fix NullPointerException" am: 95be6f1a

am: d0943127

Change-Id: I1f864c3de7e94eb50f3ffde9913c80e7ccf2a38d
parents 903c1ee8 d0943127
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -342,7 +342,16 @@ public class SubscriptionInfoUpdater extends Handler {

        String iccId = mIccId[slotId];
        if (iccId == null) {
            IccRecords records = mPhone[slotId].getIccCard().getIccRecords();
            IccCard iccCard = mPhone[slotId].getIccCard();
            if (iccCard == null) {
                logd("handleSimLoaded: IccCard null");
                return;
            }
            IccRecords records = iccCard.getIccRecords();
            if (records == null) {
                logd("handleSimLoaded: IccRecords null");
                return;
            }
            if (IccUtils.stripTrailingFs(records.getFullIccId()) == null) {
                logd("handleSimLocked: IccID null");
                return;