flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Rohrmann (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLINK-3064) Missing size check in GroupReduceOperatorBase leads to NPE
Date Tue, 24 Nov 2015 14:46:11 GMT

     [ https://issues.apache.org/jira/browse/FLINK-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Till Rohrmann resolved FLINK-3064.
----------------------------------
    Resolution: Fixed

Fixed via d2b4391f4e42a96a8b3c852e303aba170de15727

> 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)

Mime
View raw message