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