diff --git a/doric-Qt/example/doric/shader/DoricViewNode.cpp b/doric-Qt/example/doric/shader/DoricViewNode.cpp index 6182edda..2988c23b 100644 --- a/doric-Qt/example/doric/shader/DoricViewNode.cpp +++ b/doric-Qt/example/doric/shader/DoricViewNode.cpp @@ -239,7 +239,8 @@ DoricViewNode::pureCallJSResponse(QString funcId, QVariantList args) { void DoricViewNode::onClick() { if (clickFunction.isEmpty()) { - mSuperNode->onClick(); + if (mSuperNode != nullptr) + mSuperNode->onClick(); return; } QVariantList args;