nixon-atlan opened a new pull request #148:
URL: https://github.com/apache/atlas/pull/148


   Found NPE while creating entity which has attribute of Array of struct. 
   
   ```
   2021-09-27 09:47:41,202 ERROR - [etp561480862-228 - 
e3a8175a-692c-4d0e-976b-883d7026614d:] ~ Error handling a request: 
2d67e70e541c57aa (ExceptionMapperUtil:32)
   java.lang.NullPointerException
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.getAppendOptionForRelationship(EntityGraphMapper.java:1487)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapArrayValue(EntityGraphMapper.java:1448)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapToVertexByTypeCategory(EntityGraphMapper.java:858)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttribute(EntityGraphMapper.java:751)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttributes(EntityGraphMapper.java:660)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttributes(EntityGraphMapper.java:645)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.createVertex(EntityGraphMapper.java:1500)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapStructValue(EntityGraphMapper.java:1123)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapCollectionElementsToVertex(EntityGraphMapper.java:1559)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapArrayValue(EntityGraphMapper.java:1433)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapToVertexByTypeCategory(EntityGraphMapper.java:858)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttribute(EntityGraphMapper.java:751)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttributes(EntityGraphMapper.java:660)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttributes(EntityGraphMapper.java:645)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.createVertex(EntityGraphMapper.java:1500)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapStructValue(EntityGraphMapper.java:1123)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapToVertexByTypeCategory(EntityGraphMapper.java:772)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttribute(EntityGraphMapper.java:751)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttributes(EntityGraphMapper.java:660)
        at 
org.apache.atlas.repository.store.graph.v2.EntityGraphMapper.mapAttributesAndClassifications(EntityGraphMapper.java:309)
   ```
   
   Testing Done:- Creating Bot entities with payload provided.


-- 
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]


Reply via email to