Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2589317599 for ; Mon, 2 Feb 2015 19:25:47 +0000 (UTC) Received: (qmail 77816 invoked by uid 500); 2 Feb 2015 19:25:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 77744 invoked by uid 500); 2 Feb 2015 19:25:35 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 77728 invoked by uid 500); 2 Feb 2015 19:25:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 77725 invoked by uid 99); 2 Feb 2015 19:25:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 19:25:35 +0000 Date: Mon, 2 Feb 2015 19:25:34 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9151) Checking s against null in TezJobMonitor#getNameWithProgress() should be done earlier 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/HIVE-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301740#comment-14301740 ] Ashutosh Chauhan commented on HIVE-9151: ---------------------------------------- +1 > Checking s against null in TezJobMonitor#getNameWithProgress() should be done earlier > ------------------------------------------------------------------------------------- > > Key: HIVE-9151 > URL: https://issues.apache.org/jira/browse/HIVE-9151 > Project: Hive > Issue Type: Bug > Affects Versions: 1.0.0, 1.2.0, 1.1.0 > Reporter: Ted Yu > Assignee: Prasanth Jayachandran > Priority: Minor > Attachments: HIVE-9151.1.patch > > > {code} > int spaceRemaining = COLUMN_1_WIDTH - s.length() - 1; > String trimmedVName = s; > // if the vertex name is longer than column 1 width, trim it down > // "Tez Merge File Work" will become "Tez Merge File.." > if (s != null && s.length() > COLUMN_1_WIDTH) { > {code} > s is dereferenced first, rendering the null check ineffective. -- This message was sent by Atlassian JIRA (v6.3.4#6332)