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

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

Merge "Add null check before accessing mContext"

parents 1b0940f1 53d41d5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1612,7 +1612,7 @@ public class SIMRecords extends IccRecords {
    @Override
    public int getDisplayRule(String plmn) {
        int rule;
        if (mContext.getResources().getBoolean(
        if ((mContext != null) && mContext.getResources().getBoolean(
                com.android.internal.R.bool.def_telephony_spn_spec_enabled)) {
            rule = SPN_RULE_SHOW_SPN;
            return rule;