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

Commit 62d026a3 authored by Shishir Agrawal's avatar Shishir Agrawal
Browse files

NPE fix Check parent app for null in SIMRecords.

Bug: 17354388
Change-Id: I2b2255b1c8fd9c7a8572d54060c1836030198a90
parent 0508a41a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1492,7 +1492,7 @@ public class SIMRecords extends IccRecords {
    public int getDisplayRule(String plmn) {
        int rule;

        if (mParentApp.getUiccCard() != null &&
        if (mParentApp != null && mParentApp.getUiccCard() != null &&
            mParentApp.getUiccCard().getOperatorBrandOverride() != null) {
        // If the operator has been overridden, treat it as the SPN file on the SIM did not exist.
            rule = SPN_RULE_SHOW_PLMN;