网络增强特性3

Signed-off-by: z00574406 <zhouli94@huawei.com>

Change-Id: Ifb8fc06af9ac38947f981c5cbc8943b2201b2776
This commit is contained in:
z00574406 2023-12-20 20:27:13 +08:00
parent 1401cd7466
commit 26d3d4d52c
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ void NetworkType::ProcessGetPreferredNetwork(const AppExecFwk::InnerEvent::Point
}
std::shared_ptr<PreferredNetworkTypeInfo> preferredNetworkInfo =
event->GetSharedObject<PreferredNetworkTypeInfo>();
if (TELEPHONY_EXT_WRAPPER.getPreferredNetworkExt_ != nullptr) {
if (TELEPHONY_EXT_WRAPPER.getPreferredNetworkExt_ != nullptr && preferredNetworkInfo != nullptr) {
TELEPHONY_EXT_WRAPPER.getPreferredNetworkExt_(preferredNetworkInfo->preferredNetworkType);
}
std::shared_ptr<HRilRadioResponseInfo> responseInfo = event->GetSharedObject<HRilRadioResponseInfo>();

View File

@ -412,7 +412,7 @@ int32_t RadioInfo::ProcessGetNrOptionMode(const AppExecFwk::InnerEvent::Pointer
return TELEPHONY_ERR_LOCAL_PTR_NULL;
}
std::shared_ptr<NrModeInfo> nrModeInfo = event->GetSharedObject<NrModeInfo>();
if (TELEPHONY_EXT_WRAPPER.getNrOptionModeExt_ != nullptr) {
if (TELEPHONY_EXT_WRAPPER.getNrOptionModeExt_ != nullptr && nrModeInfo != nullptr) {
TELEPHONY_EXT_WRAPPER.getNrOptionModeExt_(slotId_, nrModeInfo->nrMode);
}
std::shared_ptr<HRilRadioResponseInfo> responseInfo = event->GetSharedObject<HRilRadioResponseInfo>();