Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6afdd50a authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Handle exception in getSimStateForSlotIndex." into qt-dev

am: 24704884

Change-Id: I7165d0eb4227f45a88b8355f521bbe8699c08d72
parents 8f36ebcf 24704884
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2399,7 +2399,12 @@ public class SubscriptionController extends ISub.Stub {
            simState = IccCardConstants.State.UNKNOWN;
            err = "invalid slotIndex";
        } else {
            Phone phone = PhoneFactory.getPhone(slotIndex);
            Phone phone = null;
            try {
                phone = PhoneFactory.getPhone(slotIndex);
            } catch (IllegalStateException e) {
                // ignore
            }
            if (phone == null) {
                simState = IccCardConstants.State.UNKNOWN;
                err = "phone == null";