mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-27 02:00:45 +00:00
修改指针判空顺序
Signed-off-by: rsin <renxin20@h-partners.com>
This commit is contained in:
parent
8243cc07df
commit
410f2df6b5
@ -1098,7 +1098,7 @@ void SimManager::RegisterCoreNotify(int32_t slotId, const std::shared_ptr<AppExe
|
||||
simStateManager_[slotId]->RegisterCoreNotify(handler, what);
|
||||
} else if (what == RadioEvent::RADIO_SIM_ACCOUNT_LOADED) {
|
||||
// IsVSimSlotId is used for the callback function can be registered in the VSIM card.
|
||||
if ((!IsValidSlotId(slotId) && !multiSimMonitor_->IsVSimSlotId(slotId)) || (multiSimMonitor_ == nullptr)) {
|
||||
if ((multiSimMonitor_ == nullptr) || (!IsValidSlotId(slotId) && !multiSimMonitor_->IsVSimSlotId(slotId))) {
|
||||
TELEPHONY_LOGE("slotId is invalid or multiSimMonitor_ is nullptr !");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user