fix 错误使用了CHECK_NULL_VOID

Signed-off-by: zhoukechen <zhoukechen2@huawei.com>
Change-Id: I83602b46f78e8bd151e16dfc17714be9a275ad17
This commit is contained in:
zhoukechen 2024-11-13 17:41:10 +08:00
parent 64e9fc819b
commit 925262b426

View File

@ -966,7 +966,7 @@ bool TextFieldPattern::GetEditingBoxModel() const
{
bool isDeclarative = false;
auto host = GetHost();
CHECK_NULL_VOID(host);
CHECK_NULL_RETURN(host, false);
auto pipeline = host->GetContext();
if (pipeline && pipeline->GetIsDeclarative()) {
isDeclarative = true;