Merge "Handle null ApnSetting in PDCS" am: 600bc1f2ef

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2032086

Change-Id: Icc0d9b724cdd3790be068a015afa9c43457d4430
This commit is contained in:
Sarah Chin
2022-03-18 21:55:59 +00:00
committed by Automerger Merge Worker

View File

@@ -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)