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

Commit 8d2641da authored by mqi's avatar mqi Committed by Gerrit - the friendly Code Review server
Browse files

SystemUI: Fix systemui FC issue

SystemUI FC due to null pointer.

Add null pointer check to avoid FC.

Change-Id: I853a1c270e3a63e96199ac43f7fa93c5f8eefb87
CRs-Fixed: 1058646
parent b81e5ee8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -625,10 +625,10 @@ public class MobileSignalController extends SignalController<
            mCurrentState.networkName = mServiceState.getOperatorAlphaShort();
        }

        if (!showLongOperatorName()) {
            mCurrentState.networkNameData = TextUtils.isEmpty(mServiceState.
                    getOperatorAlphaShort()) ? mCurrentState.networkNameData : mServiceState.
                    getOperatorAlphaShort() + " " + getNetworkClassString(mServiceState);
        if (!showLongOperatorName() && mServiceState != null && !TextUtils.isEmpty(
                mServiceState.getOperatorAlphaShort())) {
            mCurrentState.networkNameData = mServiceState.getOperatorAlphaShort()
                            + " " + getNetworkClassString(mServiceState);
        }

        if (mConfig.readIconsFromXml) {