VinayakMarraiya230920 commented on code in PR #374:
URL: https://github.com/apache/atlas/pull/374#discussion_r2192619622


##########
authorization/src/main/java/org/apache/atlas/authorize/AtlasEntityAccessRequest.java:
##########
@@ -76,7 +79,7 @@ public AtlasEntityAccessRequest(AtlasTypeRegistry 
typeRegistry, AtlasPrivilege a
         this.businessMetadata      = businessMetadata;
         this.attributeName         = attributeName;
         this.typeRegistry          = typeRegistry;
-        this.entityClassifications = super.getClassificationNames(entity);
+        this.entityClassifications = (entity != null && 
CollectionUtils.isNotEmpty(entity.getClassificationNames())) ? new 
HashSet<>(entity.getClassificationNames()) : Collections.emptySet();

Review Comment:
   I've updated the PR based on the comments. Please review it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@atlas.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to