update device_info/device_info_load.cpp.

Signed-off-by: 杨浩 <yanghao236@huawei.com>
This commit is contained in:
杨浩 2024-01-27 08:46:44 +00:00 committed by Gitee
parent 18fdc836b2
commit e9358df192
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -29,7 +29,7 @@ void DeviceInfoLoad::OnLoadSystemAbilitySuccess(int32_t systemAbilityId,
{
DINFO_CHECK(systemAbilityId == SYSPARAM_DEVICE_SERVICE_ID, return,
"start systemabilityId is not deviceinfo! %d", systemAbilityId);
if (remoteObject != nullptr) {
if (remoteObject == nullptr) {
DINFO_LOGI("OnLoadSystemAbilitySuccess but remote is null %d", systemAbilityId);
DeviceInfoKits::GetInstance().FinishStartSAFailed();
return;