fix the problem of checkbox crash

Signed-off-by: yan-shuifeng <yanshuifeng@huawei.com>
Change-Id: I11749071b61dae0e103f3386482987e694b2f766
This commit is contained in:
yan-shuifeng
2022-03-19 12:12:00 +08:00
parent 494e96dbcc
commit 7f483acfe1
@@ -168,7 +168,9 @@ void RenderCheckbox::HandleClick()
}
} else if (!(component_->GetCheckboxName().empty())) {
component_->SetValue(!component_->GetValue());
component_->GetGroup()->SetGroupStatus();
if (component_->GetGroup()) {
component_->GetGroup()->SetGroupStatus();
}
}
}
UpdateUIStatus();