Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 56009 invoked from network); 16 Apr 2011 00:07:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2011 00:07:46 -0000 Received: (qmail 97822 invoked by uid 500); 16 Apr 2011 00:07:45 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 97799 invoked by uid 500); 16 Apr 2011 00:07:45 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 97791 invoked by uid 99); 16 Apr 2011 00:07:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 00:07:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 00:07:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BB68AA3FA0 for ; Sat, 16 Apr 2011 00:07:05 +0000 (UTC) Date: Sat, 16 Apr 2011 00:07:05 +0000 (UTC) From: "Himanshu Vashishtha (JIRA)" To: issues@hbase.apache.org Message-ID: <1562700554.61622.1302912425764.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1440747656.12951.1301097065888.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020497#comment-13020497 ] Himanshu Vashishtha commented on HBASE-3702: -------------------------------------------- A similar bug is there in ExecResult.write(DataOutput) when it is writing a null value, it throws a npe. There should be a check that in case of null value one should use Writable else invoke .getClass(). > Exec throws a npe while writing a method that has a null value argument > ----------------------------------------------------------------------- > > Key: HBASE-3702 > URL: https://issues.apache.org/jira/browse/HBASE-3702 > Project: HBase > Issue Type: Bug > Components: coprocessors > Reporter: Himanshu Vashishtha > Assignee: Gary Helmling > Fix For: 0.92.0 > > Attachments: HBASE-3702.patch > > > Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira