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

Commit 7b5ace01 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Android Build Coastguard Worker
Browse files

Add null check for subInfo

Bug: 387389548
Test: manual
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4f6188d25779f90a50d2858d1760f976cd9ecff2)
Merged-In: I8eb3b6c2d810dd667331e212da6f6a39b63d0a6d
Change-Id: I8eb3b6c2d810dd667331e212da6f6a39b63d0a6d
parent 51ef54a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4721,6 +4721,9 @@ public class SubscriptionManagerService extends ISub.Stub {
    public boolean isSatelliteProvisionedForNonIpDatagram(int subId) {
        SubscriptionInfoInternal subInfo = mSubscriptionDatabaseManager.getSubscriptionInfoInternal(
                subId);
        if (subInfo == null) {
            return false;
        }

        return subInfo.getIsSatelliteProvisionedForNonIpDatagram() == 1;
    }