flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Ewen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLINK-3635) Potential null deference in TwitterExample#SelectEnglishAndTokenizeFlatMap#flatMap
Date Mon, 04 Apr 2016 10:53:25 GMT

     [ https://issues.apache.org/jira/browse/FLINK-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stephan Ewen resolved FLINK-3635.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0

Fixed via 81fa9adcd7ee076e1ea756ffed62f5359e183f9d

Thank you for the contribution!

> 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
>             Fix For: 1.1.0
>
>
> {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)

Mime
View raw message