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
This commit is contained in:
@@ -2013,10 +2013,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ApnSetting apnSetting = preciseState.getApnSetting();
|
|
||||||
|
|
||||||
synchronized (mRecords) {
|
synchronized (mRecords) {
|
||||||
if (validatePhoneId(phoneId)) {
|
if (validatePhoneId(phoneId) && preciseState.getApnSetting() != null) {
|
||||||
Pair<Integer, ApnSetting> key = Pair.create(preciseState.getTransportType(),
|
Pair<Integer, ApnSetting> key = Pair.create(preciseState.getTransportType(),
|
||||||
preciseState.getApnSetting());
|
preciseState.getApnSetting());
|
||||||
PreciseDataConnectionState oldState = mPreciseDataConnectionStates.get(phoneId)
|
PreciseDataConnectionState oldState = mPreciseDataConnectionStates.get(phoneId)
|
||||||
|
|||||||
Reference in New Issue
Block a user