Merge "Do not crash clients when service is not available" into udc-dev am: 5434a53c8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21574159 Change-Id: I8fedad8b20b3510e1b46548cec3e5746a3fb92d7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -4401,7 +4401,6 @@ public class SubscriptionManager {
|
||||
*
|
||||
* @throws IllegalArgumentException if subscription is invalid.
|
||||
* @throws SecurityException if the caller doesn't have permissions required.
|
||||
* @throws IllegalStateException if subscription service is not available.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@@ -4418,8 +4417,7 @@ public class SubscriptionManager {
|
||||
if (iSub != null) {
|
||||
return iSub.getSubscriptionUserHandle(subscriptionId);
|
||||
} else {
|
||||
throw new IllegalStateException("[getSubscriptionUserHandle]: "
|
||||
+ "subscription service unavailable");
|
||||
Log.e(LOG_TAG, "[getSubscriptionUserHandle]: subscription service unavailable");
|
||||
}
|
||||
} catch (RemoteException ex) {
|
||||
ex.rethrowAsRuntimeException();
|
||||
|
||||
Reference in New Issue
Block a user