[Settings] Add null protection to avoid the crash
Change-Id: Id933a33ecf2931445a57cf6588a9c9123c170707 Test: manual Bug: 202162176
This commit is contained in:
@@ -285,9 +285,11 @@ public class NetworkProviderWifiCallingGroup extends
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void unregister() {
|
public void unregister() {
|
||||||
|
if (mTelephonyManager != null) {
|
||||||
mTelephonyManager.unregisterTelephonyCallback(this);
|
mTelephonyManager.unregisterTelephonyCallback(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To indicate that should show the Wi-Fi calling preference or not.
|
* To indicate that should show the Wi-Fi calling preference or not.
|
||||||
|
|||||||
Reference in New Issue
Block a user