1
0
Fork 0

Fixed a nullptr access in Traversal condition finder.

This commit is contained in:
Michael Hackstein 2016-04-14 13:32:28 +02:00
parent 2d860fb80e
commit e90193bec0
1 changed files with 5 additions and 2 deletions

View File

@ -205,8 +205,11 @@ static bool extractSimplePathAccesses(AstNode const* node, TraversalNode* tn,
delete varRefNode;
throw;
}
varRefNode->setData(isEdgeAccess ? tn->edgeOutVariable()
: tn->vertexOutVariable());
// We fake the variable at this point.
// The reason is that we need a variable access (instead of indexed access)
// for serialisation. However the content of this variable is never used.
varRefNode->setData(tn->vertexOutVariable());
firstRefNode->changeMember(0, varRefNode);
auto expressionOperator = compareNode->type;