You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by dw...@apache.org on 2018/09/06 14:17:37 UTC

[flink] branch master updated: [hotfix][streaming] fix check for notNull jobName in StreamContextEnvironment

This is an automated email from the ASF dual-hosted git repository.

dwysakowicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new bb562c2  [hotfix][streaming] fix check for notNull jobName in StreamContextEnvironment
bb562c2 is described below

commit bb562c242d8b01af3b54696ee9bb81d03fdeb66a
Author: 陈梓立 <wa...@gmail.com>
AuthorDate: Thu Sep 6 22:17:33 2018 +0800

    [hotfix][streaming] fix check for notNull jobName in StreamContextEnvironment
---
 .../flink/streaming/api/environment/StreamContextEnvironment.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamContextEnvironment.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamContextEnvironment.java
index 010628f..c0216e5 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamContextEnvironment.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamContextEnvironment.java
@@ -48,7 +48,7 @@ public class StreamContextEnvironment extends StreamExecutionEnvironment {
 
 	@Override
 	public JobExecutionResult execute(String jobName) throws Exception {
-		Preconditions.checkNotNull("Streaming Job name should not be null.");
+		Preconditions.checkNotNull(jobName, "Streaming Job name should not be null.");
 
 		StreamGraph streamGraph = this.getStreamGraph();
 		streamGraph.setJobName(jobName);