diff options
Diffstat (limited to 'node/variablenode.cpp')
| -rw-r--r-- | node/variablenode.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/node/variablenode.cpp b/node/variablenode.cpp index fafc722..c0d491c 100644 --- a/node/variablenode.cpp +++ b/node/variablenode.cpp @@ -14,10 +14,14 @@ void VariableNode::run(ExecutionNode *previous) value = ParsingToolBox::getLatestNode(value); if(nullptr != value) { - m_result = value->getResult()->getCopy(); - if(nullptr!=m_nextNode) + auto result = value->getResult(); + if(result) { - m_nextNode->run(this); + m_result = result->getCopy(); + if(nullptr!=m_nextNode) + { + m_nextNode->run(this); + } } } } |