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

Commit ed693056 authored by Sarah Chin's avatar Sarah Chin
Browse files

Handle null ApnSetting in PDCS

ApnSetting is nullable in PDCS. TelephonyRegistry don't broadcast data
connection if ApnSetting is null.

Test: atest TelephonyRegistryTest
Bug: 221399355
Change-Id: I7a59d1d4bc6838b5032920e3a89b984336481562
Merged-In: I7a59d1d4bc6838b5032920e3a89b984336481562
parent 36b9bc8e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2009,10 +2009,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
            return;
        }

        ApnSetting apnSetting = preciseState.getApnSetting();

        synchronized (mRecords) {
            if (validatePhoneId(phoneId)) {
            if (validatePhoneId(phoneId) && preciseState.getApnSetting() != null) {
                Pair<Integer, ApnSetting> key = Pair.create(preciseState.getTransportType(),
                        preciseState.getApnSetting());
                PreciseDataConnectionState oldState = mPreciseDataConnectionStates.get(phoneId)