avoid npe

This commit is contained in:
王劲鹏 2021-06-01 19:44:13 +08:00 committed by osborn
parent d34655db07
commit dde6152972

View File

@ -239,6 +239,7 @@ DoricViewNode::pureCallJSResponse(QString funcId, QVariantList args) {
void DoricViewNode::onClick() { void DoricViewNode::onClick() {
if (clickFunction.isEmpty()) { if (clickFunction.isEmpty()) {
if (mSuperNode != nullptr)
mSuperNode->onClick(); mSuperNode->onClick();
return; return;
} }