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

Commit 24704884 authored by Amit Mahajan's avatar Amit Mahajan Committed by Android (Google) Code Review
Browse files

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

parents 9769c045 c1952504
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2375,7 +2375,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";