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

Commit d01a100a authored by Sandeep Gutta's avatar Sandeep Gutta
Browse files

Add sanity check to fix NullPointerException

Test: Verfieid sanity cases with SIM PIN enabled SIM
Change-Id: I04692d7bd36dc2a6d64d6c9ac05260ee68b8577e
parent 94b853a0
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;