From 6531afb0a739b56cbc097da45525f61140e09d36 Mon Sep 17 00:00:00 2001 From: James Chu Date: Thu, 23 Nov 2023 11:36:34 +0800 Subject: [PATCH] fix npe in traverse stream executor --- src/graph/executor/stream/TraverseStreamExecutor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph/executor/stream/TraverseStreamExecutor.cpp b/src/graph/executor/stream/TraverseStreamExecutor.cpp index cfacf21600d..c20fabfe26d 100644 --- a/src/graph/executor/stream/TraverseStreamExecutor.cpp +++ b/src/graph/executor/stream/TraverseStreamExecutor.cpp @@ -362,8 +362,8 @@ void TraverseStreamExecutor::expand(GetNeighborsIter* iter, TraverseRoundContext if (iter->numRows() == 0) { return; } - auto* vFilter = traverse_->vFilter()->clone(); - auto* eFilter = traverse_->eFilter()->clone(); + auto* vFilter = traverse_->vFilter() ? traverse_->vFilter()->clone() : nullptr; + auto* eFilter = traverse_->eFilter() ? traverse_->eFilter()->clone() : nullptr; QueryExpressionContext ctx(ectx_); Value curVertex;