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

Commit ee07de8b authored by Ketut Putu Kumajaya's avatar Ketut Putu Kumajaya Committed by Abhishek Gilra
Browse files

GsmMmiCode: Fix USSD NPE

I83599c6556dec40faa74944c1fe13568b2b634fc trigger NPE on MSIM
device.

Change-Id: Ic3e5a20b101f03da74223e9a62ce459d8c006738
parent c8cab0ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1125,7 +1125,8 @@ public final class GsmMmiCode extends Handler implements MmiCode {
                if (ar.exception != null) {
                    mState = State.FAILED;
                    // suppress error pop-up for single dialed digits
                    if (mDialingNumber.length() == SINGLE_DIGIT_DIALED) {
                    if (mDialingNumber != null &&
                                mDialingNumber.length() == SINGLE_DIGIT_DIALED) {
                        Log.w(
                            LOG_TAG,
                            mContext.getText(com.android.internal.R.string.mmiError).toString()