修改config.json中会生成空的“package”标签

Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
chencheng31
2022-06-13 17:56:44 +08:00
parent 714c4f6ac0
commit d6790f623b
+1 -1
View File
@@ -123,7 +123,7 @@ bool ConfigParser::ParseModule(Json::Value &moduleNode)
}
if (!useModule_) {
if (moduleNode["package"].isString()) {
if (moduleNode.isMember("package") && moduleNode["package"].isString()) {
packageName_ = moduleNode["package"].asString();
}
return ParseDistro(moduleNode["distro"]);