You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "David Radley (JIRA)" <ji...@apache.org> on 2017/07/03 14:49:00 UTC
[jira] [Assigned] (ATLAS-1912) Coverity issue in
AtlasRelationshipDefStoreV1
[ 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)