avoid npe
This commit is contained in:
parent
d34655db07
commit
dde6152972
@ -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;
|
||||
|
Reference in New Issue
Block a user