mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-20 03:50:13 -04:00
!32 如果config.json中不存在"package"标签,会生成空的“package”标签
Merge pull request !32 from 陈程/master
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