diff options
| -rwxr-xr-x | src/com/android/phone/PhoneInterfaceManager.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index 8d946f598..fa52f48f2 100755 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java @@ -9638,13 +9638,7 @@ public class PhoneInterfaceManager extends ITelephony.Stub { TelephonyConnectionService service = registry.getTelephonyConnectionService(); - if (service == null) { - Log.e(LOG_TAG, "TelephonyConnectionService is null"); - thermalMitigationResult = - TelephonyManager.THERMAL_MITIGATION_RESULT_INVALID_STATE; - break; - - } else if (service.isEmergencyCallPending()) { + if (service != null && service.isEmergencyCallPending()) { Log.e(LOG_TAG, "An emergency call is pending"); thermalMitigationResult = TelephonyManager.THERMAL_MITIGATION_RESULT_INVALID_STATE; |
