mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 17:01:21 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
624fbab345
commit
e5da6be266
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user