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

ASF GitHub Bot commented on FLINK-5289:
---------------------------------------

Github user StephanEwen commented on the issue:

    https://github.com/apache/flink/pull/2969
  
    +1 looks good. Will put this into my merge pipeline


> NPE when using value state on non-keyed stream
> ----------------------------------------------
>
>                 Key: FLINK-5289
>                 URL: https://issues.apache.org/jira/browse/FLINK-5289
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming
>            Reporter: Timo Walther
>            Assignee: Stefan Richter
>
> Using a {{ValueStateDescriptor}} and 
> {{getRuntimeContext().getState(descriptor)}} on a non-keyed stream leads to 
> {{NullPointerException}} which is not very helpful for users:
> {code}
> java.lang.NullPointerException
>       at 
> org.apache.flink.streaming.api.operators.StreamingRuntimeContext.getState(StreamingRuntimeContext.java:109)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to