Skip to content

Commit

Permalink
Merge pull request #2392 from atlanhq/fix/list-api-null-vertex
Browse files Browse the repository at this point in the history
fix: refactoring null check for vertices with null guids
  • Loading branch information
suraj5077 authored Sep 28, 2023
2 parents a160a2d + 5d187ce commit 1ff0f10
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,7 @@ private void enqueueNeighbours(AtlasVertex currentVertex, boolean isDataset, Atl
neighbourVertex = currentEdge.getInVertex();

String vertexGuid = getGuid(neighbourVertex);
if (StringUtils.isEmpty(vertexGuid))
continue;

if (!lineageListContext.evaluateTraversalFilter(neighbourVertex))
if (StringUtils.isEmpty(vertexGuid) || !lineageListContext.evaluateTraversalFilter(neighbourVertex))
continue;

if (!skippedVertices.contains(vertexGuid) && !visitedVertices.contains(vertexGuid)) {
Expand Down

0 comments on commit 1ff0f10

Please sign in to comment.