atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Radley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-1980) Confusing error ATLAS-400-00-01A "invalid parameters: found null entity
Date Fri, 21 Jul 2017 10:19:00 GMT
David Radley created ATLAS-1980:
-----------------------------------

             Summary: Confusing error ATLAS-400-00-01A "invalid parameters: found null entity
                 Key: ATLAS-1980
                 URL: https://issues.apache.org/jira/browse/ATLAS-1980
             Project: Atlas
          Issue Type: Bug
            Reporter: David Radley
            Assignee: David Radley


When I am playing with creating relationship instances I get this error : {
    "errorCode": "ATLAS-400-00-01A",
    "errorMessage": "invalid parameters: found null entity"
}

This needs to be more descriptive. I have not clue what I have done wrong. The code logic
is : 
"
 while (entityStream.hasNext()) {
            AtlasEntity entity = entityStream.next();

            if (entity == null) {
                throw new AtlasBaseException(AtlasErrorCode.INVALID_PARAMETERS, "found null
entity");
            }
"
It doesn't not seem we should get the next entity in a stream and it be null . Normally in
java collections if hasNext() is true, the next() should give an non null element.  




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message