Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A67719E07 for ; Fri, 1 Apr 2016 17:20:26 +0000 (UTC) Received: (qmail 11736 invoked by uid 500); 1 Apr 2016 17:20:26 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 11346 invoked by uid 500); 1 Apr 2016 17:20:26 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 11189 invoked by uid 99); 1 Apr 2016 17:20:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2016 17:20:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C64032C1F70 for ; Fri, 1 Apr 2016 17:20:25 +0000 (UTC) Date: Fri, 1 Apr 2016 17:20:25 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-3635) Potential null deference in TwitterExample#SelectEnglishAndTokenizeFlatMap#flatMap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222017#comment-15222017 ] ASF GitHub Bot commented on FLINK-3635: --------------------------------------- Github user StephanEwen commented on the pull request: https://github.com/apache/flink/pull/1845#issuecomment-204477155 Merging this... > 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)