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

Commit a1fd99a6 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

GsmMmiRecords: Fix bogus null check.

The intent clearly is to check this.mIccRecords, and not
mPhone.mIccRecords. Moreover, the latter is never null because it's
a public final AtomicReference<?>.

Change-Id: I8f42368198e19656bd676f83a70dc3aa04e7a102
parent b95320cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
                            isServiceClassVoiceorNone(ssData.serviceClass));

                    Rlog.d(LOG_TAG, "setVoiceCallForwardingFlag cffEnabled: " + cffEnabled);
                    if (mPhone.mIccRecords != null) {
                    if (mIccRecords != null) {
                        mIccRecords.setVoiceCallForwardingFlag(1, cffEnabled, null);
                        Rlog.d(LOG_TAG, "setVoiceCallForwardingFlag done from SS Info.");
                    } else {