[
https://issues.apache.org/jira/browse/FLINK-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023115#comment-15023115
]
ASF GitHub Bot commented on FLINK-3064:
---------------------------------------
GitHub user s1ck opened a pull request:
https://github.com/apache/flink/pull/1396
[FLINK-3064] [core] Add size check in GroupReduceOperatorBase
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/s1ck/flink FLINK-3064
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1396.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1396
----
commit 8efb4758e32545a44dad9e52ac5b7b08bb75d8a9
Author: Martin Junghanns <[email protected]>
Date: 2015-11-23T19:07:43Z
[FLINK-3064] [core] Add size check in GroupReduceOperatorBase
----
> Missing size check in GroupReduceOperatorBase leads to NPE
> ----------------------------------------------------------
>
> Key: FLINK-3064
> URL: https://issues.apache.org/jira/browse/FLINK-3064
> Project: Flink
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.0
> Reporter: Martin Junghanns
> Assignee: Martin Junghanns
> Priority: Minor
>
> The following example leads to a NPE:
> {code:java}
> ExecutionEnvironment env =
> ExecutionEnvironment.createCollectionsEnvironment();
> env.fromCollection(Lists.newArrayList(new Tuple1<>(1L)))
> .filter(new AlwaysFalseFilter()) // returns false for any element
> .sum(0)
> .print();
> {code}
> In {{GroupReduceOperatorBase}}, it is not always checked if the input to a
> {{GroupReduceFunction}} is not empty. This leads to the NPE when executing
> the {{AggregateOperator}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)