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] [Assigned] (ATLAS-1912) Coverity issue in AtlasRelationshipDefStoreV1
Date Mon, 03 Jul 2017 14:49:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Radley reassigned ATLAS-1912:
-----------------------------------

    Assignee: David Radley

https://reviews.apache.org/r/60601/

> Coverity issue in AtlasRelationshipDefStoreV1
> ---------------------------------------------
>
>                 Key: ATLAS-1912
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1912
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: David Radley
>            Assignee: David Radley
>
>     ** CID 164823:  Null pointer dereferences  (NULL_RETURNS)
>     /repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipDefStoreV1.java:
88 in org.apache.atlas.repository.store.graph.v1.AtlasRelationshipDefStoreV1.preCreate(org.apache.atlas.model.typedef.AtlasRelationshipDef)()
>     
>     
>     ________________________________________________________________________________________________________
>     *** CID 164823:  Null pointer dereferences  (NULL_RETURNS)
>     /repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipDefStoreV1.java:
88 in org.apache.atlas.repository.store.graph.v1.AtlasRelationshipDefStoreV1.preCreate(org.apache.atlas.model.typedef.AtlasRelationshipDef)()
>     82             final String type1 = endDef1.getType();
>     83             final AtlasRelationshipEndDef endDef2 = relationshipDef.getEndDef2();
>     84             final String type2 = endDef2.getType();
>     85             final String name1 = endDef1.getName();
>     86             final String name2 = endDef2.getName();
>     87     
>     >>>     CID 164823:  Null pointer dereferences  (NULL_RETURNS)
>     >>>     Assigning: "end1TypeVertex" = null return value from "findTypeVertexByName".
>     88             AtlasVertex end1TypeVertex = typeDefStore.findTypeVertexByName(type1);
>     89     
>     90             AtlasVertex end2TypeVertex = typeDefStore.findTypeVertexByName(type2);
>     91             // create an edge between the relationshipDef and each of the entityDef
vertices.
>     92             AtlasEdge edge1 = typeDefStore.getOrCreateEdge(relationshipDefVertex,
end1TypeVertex, AtlasGraphUtilsV1.RELATIONSHIPTYPE_EDGE_LABEL);



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

Mime
View raw message