Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7435546E1 for ; Sat, 11 Jun 2011 00:23:22 +0000 (UTC) Received: (qmail 22937 invoked by uid 500); 11 Jun 2011 00:23:22 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 22900 invoked by uid 500); 11 Jun 2011 00:23:22 -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 22891 invoked by uid 99); 11 Jun 2011 00:23:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 00:23:22 +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, 11 Jun 2011 00:23:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0C83C10E515 for ; Sat, 11 Jun 2011 00:22:59 +0000 (UTC) Date: Sat, 11 Jun 2011 00:22:59 +0000 (UTC) From: "Ming Ma (JIRA)" To: issues@hbase.apache.org Message-ID: <722109185.13006.1307751779048.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HBASE-3981) CheckAndPut doesn't work with when value == null 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 CheckAndPut doesn't work with when value == null ------------------------------------------------ Key: HBASE-3981 URL: https://issues.apache.org/jira/browse/HBASE-3981 Project: HBase Issue Type: Bug Reporter: Ming Ma Assignee: Ming Ma Priority: Blocker When value == null, as in boolean res = hTable.checkAndPut(rowId, famA, col, null, put); In HRegion.java, int compareResult = comparator.compareTo(result.get(0).getValue()); comparator will be null, NPE will be thrown. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira