Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1361

VisibilityEvaluator throws NPE when passed a zero length byte array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      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.

      SadPanda.java
      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);
      

      Attachments

        1. ACCUMULO-1361.1.patch
          1 kB
          Corey J. Nolet

        Activity

          People

            sonixbp Corey J. Nolet
            cmccubbin Chris McCubbin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: