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

Commit 9632cd70 authored by Zoey Chen's avatar Zoey Chen
Browse files

[Settings] Add null protection to avoid the crash

Change-Id: Id933a33ecf2931445a57cf6588a9c9123c170707
Test: manual
Bug: 202162176
parent 99e05ea4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -285,9 +285,11 @@ public class NetworkProviderWifiCallingGroup extends
        }

        public void unregister() {
            if (mTelephonyManager != null) {
                mTelephonyManager.unregisterTelephonyCallback(this);
            }
        }
    }

    /**
     * To indicate that should show the Wi-Fi calling preference or not.