sarathkumarsubramanian commented on a change in pull request #37: 
ATLAS-2933:Empty array attributes are returned as null instead of an empty list
URL: https://github.com/apache/atlas/pull/37#discussion_r269261706
 
 

 ##########
 File path: 
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java
 ##########
 @@ -751,15 +754,16 @@ private Object mapVertexToAttribute(AtlasVertex 
entityVertex, AtlasAttribute att
                 }
             }
         }
-
         return ret;
     }
 
     private List<AtlasObjectId> mapVertexToArrayForSoftRef(AtlasVertex 
entityVertex, AtlasAttribute attribute, AtlasEntityExtInfo entityExtInfo, final 
boolean isMinExtInfo) {
         List<AtlasObjectId> ret        = null;
         List                softRefVal = 
entityVertex.getListProperty(attribute.getVertexPropertyName(), List.class);
 
-        if (CollectionUtils.isNotEmpty(softRefVal)) {
+        if (softRefVal == null || CollectionUtils.isEmpty(softRefVal)) {
 
 Review comment:
   same as above

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to