accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris McCubbin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-1361) VisibilityEvaluator throws NPE when passed a zero length byte array
Date Tue, 30 Apr 2013 01:56:16 GMT
Chris McCubbin created ACCUMULO-1361:
----------------------------------------

             Summary: 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: Bug
            Reporter: Chris McCubbin
            Priority: Minor


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

Mime
View raw message