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

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

Merge "Telephony(MSIM): Avoid NullPointerException"

parents a826791b c44e9feb
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());