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;