[Settings] Add null protection to avoid the crash
Change-Id: Id933a33ecf2931445a57cf6588a9c9123c170707 Test: manual Bug: 202162176
This commit is contained in:
@@ -285,7 +285,9 @@ public class NetworkProviderWifiCallingGroup extends
|
||||
}
|
||||
|
||||
public void unregister() {
|
||||
mTelephonyManager.unregisterTelephonyCallback(this);
|
||||
if (mTelephonyManager != null) {
|
||||
mTelephonyManager.unregisterTelephonyCallback(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user