[ https://issues.apache.org/jira/browse/FLINK-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated FLINK-3635: -------------------------- Description: {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. was: {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. > 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)