[
https://issues.apache.org/jira/browse/FALCON-2073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ying Zheng updated FALCON-2073:
-------------------------------
Description:
Coverity scan finds a few places where the return value of an object could be
NULL but Falcon tries to access its member without handling with the corner
NULL case. For example, in OozieWorkflowEngine::updateDependents, we will run
into an error if there is no dependency edge for the oldEntity:
{code}
Set<Entity> affectedEntities =
EntityGraph.get().getDependents(oldEntity);
for (Entity affectedEntity : affectedEntities) {
......
}
{code}
was:
Coverity scan finds quite a few places where the return value of an object
could be NULL but Falcon tries to access its member without handling with the
corner NULL case. For example, in OozieWorkflowEngine::updateDependents, we
will run into an error if there is no dependency edge for the oldEntity:
{code}
Set<Entity> affectedEntities =
EntityGraph.get().getDependents(oldEntity);
for (Entity affectedEntity : affectedEntities) {
......
}
{code}
> Handle with NULL corner cases
> -----------------------------
>
> Key: FALCON-2073
> URL: https://issues.apache.org/jira/browse/FALCON-2073
> Project: Falcon
> Issue Type: Bug
> Reporter: Ying Zheng
> Assignee: Ying Zheng
>
> Coverity scan finds a few places where the return value of an object could be
> NULL but Falcon tries to access its member without handling with the corner
> NULL case. For example, in OozieWorkflowEngine::updateDependents, we will run
> into an error if there is no dependency edge for the oldEntity:
> {code}
> Set<Entity> affectedEntities =
> EntityGraph.get().getDependents(oldEntity);
> for (Entity affectedEntity : affectedEntities) {
> ......
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)