commit | 8c40d68ff9957ea76d9511bd6cd27f11d9cffba3 | [log] [tgz] |
---|---|---|
author | Daniel Bright <dbright@google.com> | Thu Aug 06 22:37:34 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 06 22:37:34 2020 +0000 |
tree | df4c0974656ac6001cd051b2b8b5bbc3f965b639 | |
parent | 0a275a18ede1361bbcdbc876a426320e87023495 [diff] | |
parent | fcdec2c17f08f9413563b442841fc74b26aec036 [diff] |
Merge "Fix error response handling for RIL request" am: d15d4e41a8 am: 2058e9356b am: fcdec2c17f Original change: https://android-review.googlesource.com/c/platform/packages/services/Telephony/+/1374156 Change-Id: I3ae0e489ccccb59869cfb9a5737790d8c079cbab
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index 8098519..88d8472 100755 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -761,7 +761,9 @@ if (ar.exception == null && ar.result != null) { request.result = ar.result; // Integer } else { - request.result = null; + // request.result must be set to something non-null + // for the calling thread to unblock + request.result = new int[]{-1}; if (ar.result == null) { loge("getPreferredNetworkType: Empty response"); } else if (ar.exception instanceof CommandException) {