[
https://issues.apache.org/jira/browse/FLINK-9942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555475#comment-16555475
]
ASF GitHub Bot commented on FLINK-9942:
---------------------------------------
GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/6416
[FLINK-9942][rest] Guard handlers against null fields
## What is the purpose of the change
This PR fixes prevents some NPEs that could arise if fields in the request
are set to null or are omitted.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 9942
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6416.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6416
----
commit 3e9046864d566ef6aa0d9af7a09771ebb5fe556b
Author: zentol <chesnay@...>
Date: 2018-07-25T06:39:29Z
[FLINK-9942][rest] Guard handlers against null fields
----
> Guard handlers against null fields in requests
> ----------------------------------------------
>
> Key: FLINK-9942
> URL: https://issues.apache.org/jira/browse/FLINK-9942
> Project: Flink
> Issue Type: Improvement
> Components: REST
> Affects Versions: 1.5.0, 1.6.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Labels: pull-request-available
>
> In FLINK-8233 the {{ObjectMapper}} used for the REST API was modified to not
> fail on missing creator properties. This means that any field for any request
> may be null.
> Since fields not being null was an assumption that handlers were previously
> built on, we now have to scan every implementation to ensure they can't fail
> with an NPE.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)