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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user