diff options
author | Wileen Chiu <wileenc@codeaurora.org> | 2021-07-09 13:13:52 -0700 |
---|---|---|
committer | Wileen Chiu <wileenc@codeaurora.org> | 2021-07-09 13:43:57 -0700 |
commit | e8e8ceb8fe8cf68c3c7644c1e05408fd3c3796be (patch) | |
tree | 49b4792a3f932eed78f52723199fe37b9a0cf415 /telephony/java/android | |
parent | 70ec282c1bd5e68015ed9412a730f5254ee6585c (diff) |
Catch IllegalArgumentException for invalid phone id
- CarrierConfigLoader#updateConfigForPhoneId throws
an IllegalArgumentException when receiving an update
for a phone id that may not no longer be in use
- Catch the exception instead and log the information
Change-Id: I167a253ae1fc804c408009ba4a6a4bbaa1eba15a
CRs-Fixed: 2978083
Diffstat (limited to 'telephony/java/android')
-rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 97fd7c06b5b5..491e69296ab2 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -5963,7 +5963,7 @@ public class CarrierConfigManager { return; } loader.updateConfigForPhoneId(phoneId, simState); - } catch (RemoteException ex) { + } catch (RemoteException | IllegalArgumentException ex) { Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString()); } } |