!21 fix: repair CPPCrash

Merge pull request !21 from 郭东奇/OpenHarmony-3.1-Release
This commit is contained in:
openharmony_ci
2022-12-15 06:12:39 +00:00
committed by Gitee
+4
View File
@@ -105,6 +105,10 @@ static int DevmgrServiceLoadDevice(struct IDevmgrService *devMgrSvc, const char
return HDF_FAILURE;
}
if (hostClnt->hostService == NULL) {
return HDF_FAILURE;
}
return hostClnt->hostService->AddDevice(hostClnt->hostService, deviceInfo);
}