You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/05/17 15:19:00 UTC

[jira] [Comment Edited] (FLINK-9185) Potential null dereference in PrioritizedOperatorSubtaskState#resolvePrioritizedAlternatives

    [ https://issues.apache.org/jira/browse/FLINK-9185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468214#comment-16468214 ] 

Ted Yu edited comment on FLINK-9185 at 5/17/18 3:18 PM:
--------------------------------------------------------

+1


was (Author: yuzhihong@gmail.com):
lgtm

> Potential null dereference in PrioritizedOperatorSubtaskState#resolvePrioritizedAlternatives
> --------------------------------------------------------------------------------------------
>
>                 Key: FLINK-9185
>                 URL: https://issues.apache.org/jira/browse/FLINK-9185
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>         if (alternative != null
>           && alternative.hasState()
>           && alternative.size() == 1
>           && approveFun.apply(reference, alternative.iterator().next())) {
> {code}
> The return value from approveFun.apply would be unboxed.
> We should check that the return value is not null.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)