flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Schmidt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-9787) Change ExecutionConfig#getGlobalJobParameters to return an instance of GlobalJobParameters instead of null if no custom globalJobParameters are set yet
Date Tue, 10 Jul 2018 08:04:00 GMT
Florian Schmidt created FLINK-9787:
--------------------------------------

             Summary: Change ExecutionConfig#getGlobalJobParameters to return an instance
of GlobalJobParameters instead of null if no custom globalJobParameters are set yet
                 Key: FLINK-9787
                 URL: https://issues.apache.org/jira/browse/FLINK-9787
             Project: Flink
          Issue Type: Improvement
            Reporter: Florian Schmidt


Currently when accessing 

 

ExecutionConfig#getGlobalJobParameters this will return `null` if no globalJobParameters are
set. This can easily lead to NullPointerExceptions when used with getGlobalJobParameters.toMap()

 

An easy improvement for this would be to just return a new instance of GlobalJobParameters
if none is set with the empty map as the parameters



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

Mime
View raw message