[
https://issues.apache.org/jira/browse/FLINK-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221038#comment-15221038
]
ASF GitHub Bot commented on FLINK-3635:
---------------------------------------
GitHub user skyahead opened a pull request:
https://github.com/apache/flink/pull/1845
[FLINK-3635] Potential null deference in TwitterExample#SelectEnglish…
…AndTokenizeFlatMap#flatMap
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/skyahead/flink FLINK-3635
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1845.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 #1845
----
commit 48a8104361341da2eadd8c50c5761d47c64f4651
Author: Tianji Li <[email protected]>
Date: 2016-04-01T02:38:23Z
[FLINK-3635] Potential null deference in
TwitterExample#SelectEnglishAndTokenizeFlatMap#flatMap
----
> Potential null deference in
> TwitterExample#SelectEnglishAndTokenizeFlatMap#flatMap
> ----------------------------------------------------------------------------------
>
> Key: FLINK-3635
> URL: https://issues.apache.org/jira/browse/FLINK-3635
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Minor
>
> {code}
> JsonNode jsonNode = jsonParser.readValue(value, JsonNode.class);
> if (jsonNode.has("user") &&
> jsonNode.get("user").get("lang").asText().equals("en")) {
> {code}
> jsonNode.get("user").get("lang") may return null, leading to
> NullPointerException.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)