aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-07-20 18:04:13 +0200
committerRenaud G <renaud@rolisteam.org>2018-07-20 18:04:13 +0200
commit45d618b710483ee1ae42cbdfcaa0406f1132f384 (patch)
tree730f00c2ecb17f18db503c2975f3892bc7b145f4 /node
parente47cba041b8c7ced45cad8921c000a1573a1ea57 (diff)
downloadOneRoll-45d618b710483ee1ae42cbdfcaa0406f1132f384.tar.gz
OneRoll-45d618b710483ee1ae42cbdfcaa0406f1132f384.zip
prevent crash when b operator is read without previous result
Diffstat (limited to 'node')
-rw-r--r--node/bind.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/node/bind.cpp b/node/bind.cpp
index 8868485..a179069 100644
--- a/node/bind.cpp
+++ b/node/bind.cpp
@@ -29,6 +29,9 @@ BindNode::BindNode()
void BindNode::run(ExecutionNode* previous)
{
m_previousNode = previous;
+ if(nullptr == m_previousNode)
+ return;
+
m_result->setPrevious(previous->getResult());
for(auto start : *m_startList)
{