mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 19:33:46 -04:00
修改config.json中会生成空的“package”标签
Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user