summaryrefslogtreecommitdiff
path: root/telephony/java/android
diff options
context:
space:
mode:
authorWileen Chiu <wileenc@codeaurora.org>2021-07-09 13:13:52 -0700
committerWileen Chiu <wileenc@codeaurora.org>2021-07-09 13:43:57 -0700
commite8e8ceb8fe8cf68c3c7644c1e05408fd3c3796be (patch)
tree49b4792a3f932eed78f52723199fe37b9a0cf415 /telephony/java/android
parent70ec282c1bd5e68015ed9412a730f5254ee6585c (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.java2
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());
}
}