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

Commit 2ad65b76 authored by Jake Hamby's avatar Jake Hamby
Browse files

Fix GSMPhone.getServiceState() when mSST is null.

Prevent NPE when getServiceState() is called on GSMPhone after
removeReferences() is called on it.

Bug: 11561165
Change-Id: I77c3638dc33b24711db2d8541b067e17e30255a1
parent a500ee7f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -255,7 +255,12 @@ public class GSMPhone extends PhoneBase {
    @Override
    public ServiceState
    getServiceState() {
        if (mSST != null) {
            return mSST.mSS;
        } else {
            // avoid potential NPE in EmergencyCallHelper during Phone switch
            return new ServiceState();
        }
    }

    @Override