pinal-shah commented on code in PR #374:
URL: https://github.com/apache/atlas/pull/374#discussion_r2161271729
##########
authorization/src/main/java/org/apache/atlas/authorize/AtlasEntityAccessRequest.java:
##########
@@ -76,7 +78,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 &&
entity.getClassificationNames() != null) ? new
HashSet<>(entity.getClassificationNames()) : Collections.emptySet();
Review Comment:
this.entityClassifications =
CollectionUtils.isNotEmpty(entity.getClassificationNames()) ? new
HashSet<>(entity.getClassificationNames()) : Collections.emptySet();
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]