diff --git a/services/native/driver_extension/src/js_driver_extension.cpp b/services/native/driver_extension/src/js_driver_extension.cpp index 00d60fc90385dc4f8e5b60a09c589df380e0a190..c42bcceb1668437a9cb4553df2387b862692dfe6 100644 --- a/services/native/driver_extension/src/js_driver_extension.cpp +++ b/services/native/driver_extension/src/js_driver_extension.cpp @@ -309,7 +309,6 @@ napi_value JsDriverExtension::CallObjectMethod(napi_env env, const char* name, c HILOG_WARN("Not found DriverExtension.js"); return nullptr; } - HandleScope handleScope(jsRuntime_); napi_value obj = jsObj_->GetNapiValue(); napi_value method = nullptr; diff --git a/services/native/driver_extension_manager/src/drivers_pkg_manager/driver_info.cpp b/services/native/driver_extension_manager/src/drivers_pkg_manager/driver_info.cpp index 3e08ae2dd81f216b01f6e257dccf95f2dabfc676..04f74caaf6440e954ad4d5a8c45742cb5d7ff9e0 100644 --- a/services/native/driver_extension_manager/src/drivers_pkg_manager/driver_info.cpp +++ b/services/native/driver_extension_manager/src/drivers_pkg_manager/driver_info.cpp @@ -61,7 +61,7 @@ static int32_t checkJsonObj(const Json::Value &jsonObj) EDM_LOGE(MODULE_COMMON, "JsonObj size is 0"); return EDM_ERR_JSON_PARSE_FAIL; } - if (!IsJsonObjValid(jsonObj, "bus") || !IsJsonObjValid(jsonObj, "vendor") || IsJsonObjValid(jsonObj, "version") + if (!IsJsonObjValid(jsonObj, "bus") || !IsJsonObjValid(jsonObj, "vendor") || !IsJsonObjValid(jsonObj, "version") || !IsJsonObjValid(jsonObj, "ext_info")) { EDM_LOGE(MODULE_COMMON, "json member or member type error"); return EDM_ERR_JSON_OBJ_ERR;