You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2011/06/11 06:59:58 UTC

[jira] [Commented] (HBASE-3981) CheckAndPut doesn't work when value == null

    [ https://issues.apache.org/jira/browse/HBASE-3981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047841#comment-13047841 ] 

stack commented on HBASE-3981:
------------------------------

Ming.  Do a search. I think Lars George pointed this out in an earlier issue?  If you can't find it, np.  I can find it.  Important thing is whether you have a patch (smile).

> CheckAndPut doesn't work 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