Loading src/java/com/android/internal/telephony/imsphone/ImsPhone.java +8 −1 Original line number Diff line number Diff line Loading @@ -2507,8 +2507,15 @@ public class ImsPhone extends ImsPhoneBase { if (phoneNumber == null) { return; } SubscriptionController subController = SubscriptionController.getInstance(); int subId = getSubId(); if (!SubscriptionManager.isValidSubscriptionId(subId)) { // Defending b/219080264: // SubscriptionController.setSubscriptionProperty validates input subId // so do not proceed if subId invalid. This may be happening because cached // IMS callbacks are sent back to telephony after SIM state changed. return; } SubscriptionController subController = SubscriptionController.getInstance(); String countryIso = getCountryIso(subController, subId); // Format the number as one more defense to reject garbage values: // phoneNumber will become null. Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhone.java +8 −1 Original line number Diff line number Diff line Loading @@ -2507,8 +2507,15 @@ public class ImsPhone extends ImsPhoneBase { if (phoneNumber == null) { return; } SubscriptionController subController = SubscriptionController.getInstance(); int subId = getSubId(); if (!SubscriptionManager.isValidSubscriptionId(subId)) { // Defending b/219080264: // SubscriptionController.setSubscriptionProperty validates input subId // so do not proceed if subId invalid. This may be happening because cached // IMS callbacks are sent back to telephony after SIM state changed. return; } SubscriptionController subController = SubscriptionController.getInstance(); String countryIso = getCountryIso(subController, subId); // Format the number as one more defense to reject garbage values: // phoneNumber will become null. Loading