Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8F5F101AA for ; Tue, 29 Apr 2014 01:14:17 +0000 (UTC) Received: (qmail 28741 invoked by uid 500); 29 Apr 2014 01:14:15 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 28677 invoked by uid 500); 29 Apr 2014 01:14:15 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 28666 invoked by uid 99); 29 Apr 2014 01:14:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 01:14:15 +0000 Date: Tue, 29 Apr 2014 01:14:15 +0000 (UTC) From: "Mike Fagan (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2748) MockTableOperations.deleteRow does not handle null for start or end keys 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/ACCUMULO-2748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983839#comment-13983839 ] Mike Fagan commented on ACCUMULO-2748: -------------------------------------- Sean, Sure which branch would you like me to patch against? > MockTableOperations.deleteRow does not handle null for start or end keys > ------------------------------------------------------------------------ > > Key: ACCUMULO-2748 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2748 > Project: Accumulo > Issue Type: Bug > Components: test > Affects Versions: 1.5.1, 1.6.0 > Environment: OSX Mavericks > Reporter: Mike Fagan > Assignee: Mike Fagan > Priority: Critical > Fix For: 1.5.2, 1.6.1 > > > The deleteRow function does not check for null values for start or end keys. > These null values are passed down into key constructor which will throw a NullPointerException: > java.lang.NullPointerException > at org.apache.accumulo.core.data.Key.(Key.java:103) > at org.apache.accumulo.core.client.mock.MockTableOperations.deleteRows(MockTableOperations.java:315) > The API semantics dictate: > if (start == null ) then start == Text() > if (end == null ) then end == maxKey() -- This message was sent by Atlassian JIRA (v6.2#6252)