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

Commit da0de0dd authored by Beena More's avatar Beena More Committed by Sandeep Gutta
Browse files

NPE when accessing Sim Cards option with no sims.

Change-Id: I97d6c599f0ddbd9c42234829d36963414e3e3df4
parent d1ae07ea
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -524,8 +524,11 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
        simPref.clearItems();

        //Get num of activated Subs
        if (mSubInfoList != null) {
            for (SubscriptionInfo subInfo : mSubInfoList) {
            if (subInfo != null && subInfo.getStatus() == SubscriptionManager.ACTIVE) mActCount++;
                if (subInfo != null && subInfo.getStatus()
                        == SubscriptionManager.ACTIVE) mActCount++;
            }
        }

        if (askFirst && mActCount > 1) {