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

Commit 87af38b1 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
parent d24d8427
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2013,10 +2013,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)