Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CAB0200BEF for ; Wed, 4 Jan 2017 09:54:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2BCAB160B3A; Wed, 4 Jan 2017 08:54:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 74D84160B39 for ; Wed, 4 Jan 2017 09:54:00 +0100 (CET) Received: (qmail 90467 invoked by uid 500); 4 Jan 2017 08:53:58 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 90075 invoked by uid 99); 4 Jan 2017 08:53:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 08:53:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 828B72C2A67 for ; Wed, 4 Jan 2017 08:53:58 +0000 (UTC) Date: Wed, 4 Jan 2017 08:53:58 +0000 (UTC) From: "Hadoop QA (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3413) Ineffective null check in LiteralExpression#newConstant() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Jan 2017 08:54:01 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15797651#comment-15797651 ] Hadoop QA commented on PHOENIX-3413: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12845484/PHOENIX-3413.2.patch against master branch at commit a0e5efcec5a1a732b2dce9794251242c3d66eea6. ATTACHMENT ID: 12845484 {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:red}-1 tests included{color}. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:red}-1 javadoc{color}. The javadoc tool appears to have generated 43 warning messages. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:green}+1 lineLengths{color}. The patch does not introduce lines longer than 100 {color:red}-1 core tests{color}. The patch failed these unit tests: ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.index.MutableIndexFailureIT Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/715//testReport/ Javadoc warnings: https://builds.apache.org/job/PreCommit-PHOENIX-Build/715//artifact/patchprocess/patchJavadocWarnings.txt Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/715//console This message is automatically generated. > Ineffective null check in LiteralExpression#newConstant() > --------------------------------------------------------- > > Key: PHOENIX-3413 > URL: https://issues.apache.org/jira/browse/PHOENIX-3413 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.9.1 > Reporter: Ted Yu > Assignee: Kevin Liew > Priority: Minor > Fix For: 4.10.0 > > Attachments: PHOENIX-3413.2.patch, PHOENIX-3413.patch > > > {code} > if (maxLength == null) { > maxLength = type == null || !type.isFixedWidth() ? null : type.getMaxLength(value); > } > {code} > The null check for type is ineffective - type is de-referenced in various places prior to the above check. -- This message was sent by Atlassian JIRA (v6.3.4#6332)