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