Skip to content

Commit

Permalink
Merge pull request #3655 from atlanhq/MM-3720
Browse files Browse the repository at this point in the history
MM-3720 Skip corrupted vertex
  • Loading branch information
aarshi0301 authored Oct 23, 2024
2 parents d1222c4 + 6a68c4f commit d630958
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,16 @@ private AtlasStruct mapVertexToStruct(AtlasVertex entityVertex, String edgeLabel

if (GraphHelper.elementExists(edge)) {
final AtlasVertex referenceVertex = edge.getInVertex();
ret = new AtlasStruct(getTypeName(referenceVertex));

String typeName = getTypeName(referenceVertex);

if (StringUtils.isEmpty(typeName)) {
LOG.error("typeName not found for in-vertex {} on edge {} from vertex {} ",
getGuid(referenceVertex), edge.getId(), getGuid(entityVertex));
return ret;
}

ret = new AtlasStruct(typeName);

mapAttributes(referenceVertex, ret, entityExtInfo, isMinExtInfo);
}
Expand Down

0 comments on commit d630958

Please sign in to comment.