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 0C4DB10656 for ; Tue, 30 Apr 2013 03:18:21 +0000 (UTC) Received: (qmail 39516 invoked by uid 500); 30 Apr 2013 03:18:19 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 39361 invoked by uid 500); 30 Apr 2013 03:18:18 -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 39244 invoked by uid 99); 30 Apr 2013 03:18:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 03:18:17 +0000 Date: Tue, 30 Apr 2013 03:18:17 +0000 (UTC) From: "Corey J. Nolet (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-1361) VisibilityEvaluator throws NPE when passed a zero length byte array 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-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Corey J. Nolet updated ACCUMULO-1361: ------------------------------------- Status: Open (was: Patch Available) > VisibilityEvaluator throws NPE when passed a zero length byte array > ------------------------------------------------------------------- > > Key: ACCUMULO-1361 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1361 > Project: Accumulo > Issue Type: Improvement > Reporter: Chris McCubbin > Assignee: Corey J. Nolet > Priority: Minor > Fix For: 1.6.0 > > > The following code snippet throws a NPE on a fairly recent version of 1.5. I would expect it to return true, or at the very least, to throw a meaningful exception. > {code:title=SadPanda.java|borderStyle=solid} > VisibilityEvaluator evaluator = new VisibilityEvaluator(new Authorizations("a".getBytes())); > ColumnVisibility cv = new ColumnVisibility(new byte[0]); > //The following line throws a NPE > boolean result = evaluator.evaluate(cv); > {code} -- 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