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

Commit 231c3c62 authored by Etan Cohen's avatar Etan Cohen
Browse files

Fix NPE due to access before checking for NULL of APN setting.

Change-Id: I7bac303a2a5d562f7f1b2569ecfa467160be52a1
parent 6638d38a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1204,16 +1204,16 @@ public final class DcTracker extends DcTrackerBase {
        DcAsyncChannel dcac;

        apnSetting = apnContext.getNextWaitingApn();
        int profileId = apnSetting.profileId;
        if (profileId == 0) {
            profileId = getApnProfileID(apnContext.getApnType());
        }

        if (apnSetting == null) {
            if (DBG) log("setupData: return for no apn found!");
            return false;
        }

        int profileId = apnSetting.profileId;
        if (profileId == 0) {
            profileId = getApnProfileID(apnContext.getApnType());
        }

        dcac = checkForCompatibleConnectedApnContext(apnContext);
        if (dcac != null) {
            // Get the dcacApnSetting for the connection we want to share.