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 4185310FEC for ; Sun, 30 Jun 2013 16:45:40 +0000 (UTC) Received: (qmail 93578 invoked by uid 500); 30 Jun 2013 16:45:37 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 93475 invoked by uid 500); 30 Jun 2013 16:45:36 -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 93383 invoked by uid 500); 30 Jun 2013 16:45:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 93349 invoked by uid 99); 30 Jun 2013 16:45:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jun 2013 16:45:35 +0000 Date: Sun, 30 Jun 2013 16:45:35 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4798) NPE when we call isSame from an instance of ExprNodeConstantDesc with null value 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-4798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-4798: ----------------------------------- Assignee: Yin Huai (was: Ashutosh Chauhan) > NPE when we call isSame from an instance of ExprNodeConstantDesc with null value > -------------------------------------------------------------------------------- > > Key: HIVE-4798 > URL: https://issues.apache.org/jira/browse/HIVE-4798 > Project: Hive > Issue Type: Bug > Reporter: Yin Huai > Assignee: Yin Huai > Priority: Minor > Attachments: HIVE-4798.txt > > > Take a look at the code > {code} > @Override > public boolean isSame(Object o) { > if (!(o instanceof ExprNodeConstantDesc)) { > return false; > } > ExprNodeConstantDesc dest = (ExprNodeConstantDesc) o; > if (!typeInfo.equals(dest.getTypeInfo())) { > return false; > } > if (!value.equals(dest.getValue())) { > return false; > } > return true; > } > {\code} > value is an Object. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira