From d6790f623b828367f45d1ec78bdd6704527cf3e3 Mon Sep 17 00:00:00 2001 From: chencheng31 Date: Mon, 13 Jun 2022 17:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9config.json=E4=B8=AD=E4=BC=9A?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=A9=BA=E7=9A=84=E2=80=9Cpackage=E2=80=9D?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chencheng31 --- src/config_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config_parser.cpp b/src/config_parser.cpp index 5879e98..ba7a62b 100644 --- a/src/config_parser.cpp +++ b/src/config_parser.cpp @@ -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"]);