Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2023-10-25 22:38:06 +08:00
parent 624fbab345
commit e5da6be266

View File

@ -804,7 +804,8 @@ bool ImeInfoInquirer::ParseSubProp(const std::vector<std::string> &profiles, std
bool ImeInfoInquirer::ParseSubProp(const json &jsonSubProps, std::vector<SubProperty> &subProps)
{
if (!jsonSubProps.contains("subtypes") || !jsonSubProps["subtypes"].is_array() || jsonSubProps["subtypes"].empty()) {
if (!jsonSubProps.contains("subtypes") || !jsonSubProps["subtypes"].is_array() ||
jsonSubProps["subtypes"].empty()) {
IMSA_HILOGE("the context of json file is abnormal");
return false;
}