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

Commit d81f90d1 authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

Check if APN setting is null

Bug: 22726562
Test: build
Merged-In: Ie98ee965daac860c249b426063f405f04c2bfb77
Change-Id: Ie98ee965daac860c249b426063f405f04c2bfb77
parent 8f565e31
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -976,7 +976,10 @@ public class RILUtils {
        dpi.mtuV6 = dp.getMtuV6();
        dpi.persistent = dp.isPersistent();
        dpi.preferred = dp.isPreferred();
        dpi.alwaysOn = false;
        if (dp.getApnSetting() != null) {
            dpi.alwaysOn = dp.getApnSetting().isAlwaysOn();
        }
        dpi.trafficDescriptor = convertToHalTrafficDescriptorAidl(dp.getTrafficDescriptor());

        // profile id is only meaningful when it's persistent on the modem.