Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06A2A17763 for ; Mon, 11 May 2015 16:40:01 +0000 (UTC) Received: (qmail 50202 invoked by uid 500); 11 May 2015 16:40:00 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 50169 invoked by uid 500); 11 May 2015 16:40:00 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 50143 invoked by uid 99); 11 May 2015 16:40:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2015 16:40:00 +0000 Date: Mon, 11 May 2015 16:40:00 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-2738) Potential null pointer reference in ConfigCommand#execute() 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/ACCUMULO-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Elser updated ACCUMULO-2738: --------------------------------- Fix Version/s: (was: 1.6.3) (was: 1.5.3) (was: 1.7.0) > Potential null pointer reference in ConfigCommand#execute() > ----------------------------------------------------------- > > Key: ACCUMULO-2738 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2738 > Project: Accumulo > Issue Type: Bug > Components: shell > Affects Versions: 1.4.0, 1.5.0, 1.6.0 > Reporter: Ted Yu > Priority: Minor > Labels: newbie > > Starting at line 210 : > {code} > if (dfault != null && key.toLowerCase().contains("password")) { > siteVal = sysVal = dfault = curVal = curVal.replaceAll(".", "*"); > } > if (sysVal != null) { > if (defaults.containsKey(key) && !Property.getPropertyByKey(key).isExperimental()) { > printConfLine(output, "default", key, dfault); > {code} > Comparing dfault with null implies that dfault may be null. > If that is the case, we would get null pointer dereference in the call to printConfLine() at line 215 where dfault.replace() is called. -- This message was sent by Atlassian JIRA (v6.3.4#6332)