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

Commit c0ec55f0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix system server crash"

parents bca9bbf6 326b5a15
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1268,11 +1268,13 @@ public class SubscriptionManager {
     * {@hide}
     */
    public static int getSimStateForSubscriber(int subId) {
        int simState;
        int simState = TelephonyManager.SIM_STATE_UNKNOWN;

        try {
            ISub iSub = ISub.Stub.asInterface(ServiceManager.getService("isub"));
            if (iSub != null) {
                simState = iSub.getSimStateForSubscriber(subId);
            }
        } catch (RemoteException ex) {
            simState = TelephonyManager.SIM_STATE_UNKNOWN;
        }