diff --git a/interfaces/innerkits/syspara/param_wrapper.cpp b/interfaces/innerkits/syspara/param_wrapper.cpp index 4a7d5f29a20876a05daf84be901a0ee2611f55dd..810f6127d0d93c290162ff767d9ce436ae83b077 100644 --- a/interfaces/innerkits/syspara/param_wrapper.cpp +++ b/interfaces/innerkits/syspara/param_wrapper.cpp @@ -164,7 +164,7 @@ std::string GetDeviceType(void) }; static const char *productType = nullptr; const char *type = GetProperty("const.build.devicetype", &productType); - if (type == NULL) { + if (type == nullptr) { type = GetProperty("const.build.characteristics", &productType); } if (deviceTypeMap.count(type) != 0) {