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

Commit 1b5916b2 authored by Wink Saville's avatar Wink Saville
Browse files

Check for subId array being null.

Bug: 15665102
Change-Id: I9424da81311eacebf280a30c4e32a530be4a3278
parent 34c6b864
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1414,6 +1414,9 @@ public class TelephonyManager {
    // FIXME the argument to pass is subId ??
    public int getSimState(int slotId) {
        long[] subId = SubscriptionManager.getSubId(slotId);
        if (subId == null) {
            return SIM_STATE_ABSENT;
        }
        // FIXME Do not use a property to determine SIM_STATE, call
        // appropriate method on some object.
        String prop =