[
https://issues.apache.org/jira/browse/FLINK-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584883#comment-14584883
]
ASF GitHub Bot commented on FLINK-2178:
---------------------------------------
Github user andralungu commented on the pull request:
https://github.com/apache/flink/pull/799#issuecomment-111761198
Yup, exactly! The use case was: I modified something in the edge data set,
called groupReduceOnNeighbors on the result and got NPE, exception that could
have been avoided with this check, just like was the case for the Degree NPE.
Making sure that the iterator is not null can save some people lots of
headaches, IMO :) And it doesn't hurt anyone who has a correct data set.
> groupReduceOnNeighbors throws NoSuchElementException
> ----------------------------------------------------
>
> Key: FLINK-2178
> URL: https://issues.apache.org/jira/browse/FLINK-2178
> Project: Flink
> Issue Type: Bug
> Components: Gelly
> Affects Versions: 0.9
> Reporter: Andra Lungu
> Assignee: Andra Lungu
>
> In the ALL EdgeDirection case, ApplyCoGroupFunctionOnAllNeighbors does not
> check whether the vertex iterator has elements causing the aforementioned
> exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)