[
https://issues.apache.org/jira/browse/ATLAS-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Mestry updated ATLAS-1672:
-----------------------------------
Attachment: ATLAS-1672-Coverity Scan-3-18.patch
> Coverity Scan Issues Detected on 3/18
> -------------------------------------
>
> Key: ATLAS-1672
> URL: https://issues.apache.org/jira/browse/ATLAS-1672
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: trunk, 0.9-incubating
> Reporter: Ashutosh Mestry
> Assignee: Ashutosh Mestry
> Fix For: trunk
>
> Attachments: ATLAS-1672-Coverity Scan-3-18.patch
>
>
> 2 new defect(s) introduced to Apache Atlas found with Coverity Scan.
> New defect(s) Reported-by: Coverity Scan
> Showing 2 of 2 defect(s)
> ** CID 160099: Null pointer dereferences (NULL_RETURNS)
> /repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityChangeNotifier.java:
> 234 in
> org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.updateFullTextMapping(java.lang.String,
> java.util.List)()
> ________________________________________________________________________________________________________
> *** CID 160099: Null pointer dereferences (NULL_RETURNS)
> /repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityChangeNotifier.java:
> 234 in
> org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.updateFullTextMapping(java.lang.String,
> java.util.List)()
> 228 LOG.warn("Unable to determine if FullText is disabled.
> Proceeding with FullText mapping");
> 229 }
> 230
> 231 if (StringUtils.isEmpty(entityId) ||
> CollectionUtils.isEmpty(classifications)) {
> 232 return;
> 233 }
> CID 160099: Null pointer dereferences (NULL_RETURNS)
> Assigning: "atlasVertex" = null return value from "findByGuid".
> 234 AtlasVertex atlasVertex =
> AtlasGraphUtilsV1.findByGuid(entityId);
> 235
> 236 try {
> 237 String classificationFullText =
> fullTextMapperV2.getIndexTextForClassifications(entityId, classifications);
> 238 String existingFullText = (String)
> GraphHelper.getProperty(atlasVertex, Constants.ENTITY_TEXT_PROPERTY_KEY);
> 239
> ** CID 160098: Null pointer dereferences (NULL_RETURNS)
> /webapp/src/main/java/org/apache/atlas/web/resources/ZipSource.java: 199 in
> org.apache.atlas.web.resources.ZipSource.getEntity(java.lang.String)()
> ________________________________________________________________________________________________________
> *** CID 160098: Null pointer dereferences (NULL_RETURNS)
> /webapp/src/main/java/org/apache/atlas/web/resources/ZipSource.java: 199 in
> org.apache.atlas.web.resources.ZipSource.getEntity(java.lang.String)()
> 193 return null;
> 194 }
> 195 }
> 196
> 197 private AtlasEntity getEntity(String guid) throws
> AtlasBaseException {
> 198 if(guidEntityJsonMap.containsKey(guid)) {
> CID 160098: Null pointer dereferences (NULL_RETURNS)
> Calling a method on null object "getEntityWithExtInfo(guid)".
> 199 return getEntityWithExtInfo(guid).getEntity();
> 200 }
> 201
> 202 return null;
> 203 }
> 204
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)