This is an automated email from the ASF dual-hosted git repository.
amestry pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new fd26e12 ATLAS-4310: Handled NPE for DELETE classification.
fd26e12 is described below
commit fd26e12f689161fd85676b4a3d81cf1fcbd4e10a
Author: Ashutosh Mestry <[email protected]>
AuthorDate: Wed May 26 13:58:03 2021 -0700
ATLAS-4310: Handled NPE for DELETE classification.
---
.../org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
index 5baff33..b51cbfc 100644
---
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
+++
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
@@ -2508,13 +2508,13 @@ public class EntityGraphMapper {
}
AtlasVertex classificationVertex =
graph.getVertex(classificationVertexId);
- AtlasClassification classification =
entityRetriever.toAtlasClassification(classificationVertex);
if (classificationVertex == null) {
LOG.warn("deleteClassificationPropagation(classificationVertexId={}):
classification vertex not found", classificationVertexId);
return null;
}
+ AtlasClassification classification =
entityRetriever.toAtlasClassification(classificationVertex);
List<AtlasVertex> entityVertices =
deleteDelegate.getHandler().removeTagPropagation(classificationVertex);
deleteDelegate.getHandler().deleteClassificationVertex(classificationVertex,
true);
if (CollectionUtils.isEmpty(entityVertices)) {