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

Commit c44e9feb authored by Sindhu Kanathur's avatar Sindhu Kanathur Committed by Gerrit - the friendly Code Review server
Browse files

Telephony(MSIM): Avoid NullPointerException

Wifi group and Mobile group variable can be null
during SystemUI startup or onDetachWindow.

Change-Id: I602ac0a2e54ba90142fae2b1dee176c9e248d305
CRs-Fixed: 643031
parent 4ce17650
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -315,9 +315,11 @@ public class MSimSignalClusterView
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
        // Standard group layout onPopulateAccessibilityEvent() implementations
        // ignore content description, so populate manually
        if (mWifiVisible && mWifiGroup.getContentDescription() != null)
        if (mWifiVisible && mWifiGroup != null &&
                mWifiGroup.getContentDescription() != null)
            event.getText().add(mWifiGroup.getContentDescription());
        if (mMobileVisible && mMobileGroup[MSimConstants.DEFAULT_SUBSCRIPTION].
        if (mMobileVisible && mMobileGroup[MSimConstants.DEFAULT_SUBSCRIPTION] != null
                && mMobileGroup[MSimConstants.DEFAULT_SUBSCRIPTION].
                getContentDescription() != null)
            event.getText().add(mMobileGroup[MSimConstants.DEFAULT_SUBSCRIPTION].
                    getContentDescription());