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

Commit 69296165 authored by Zoey Chen's avatar Zoey Chen
Browse files

[Settings] NPE when finish MobileNetworkSettings

Add NPE protection when finish

Bug: 271524675
Test: local test
Change-Id: I74bb54f2e591534b411589c150ce0bd993c2e6dd
parent d1d2374b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ public class MobileNetworkSettings extends AbstractMobileNetworkSettings impleme

            Iterator<Integer> iterator = mSubscriptionInfoMap.keySet().iterator();
            while (iterator.hasNext()) {
                if (iterator.next() == mSubId) {
                if (iterator.next() == mSubId && getActivity() != null) {
                    finishFragment();
                    return;
                }