Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-412

NullPointerException defect in ChecksumCalculatingInputStream#getValue()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15
    • Component/s: None
    • Labels:
      None

      Description

      NullPointerException defect in ChecksumCalculatingInputStream#getValue() detected as stated in pull request 33: https://github.com/apache/commons-compress/pull/33

      Furthermore the following test describes the problem:

          @Test(expected = NullPointerException.class) //I assume this behaviour to be a bug or at least a defect.
          public void testGetValueThrowsNullPointerException() {
      
              ChecksumCalculatingInputStream checksumCalculatingInputStream = new ChecksumCalculatingInputStream(null,null);
      
              checksumCalculatingInputStream.getValue();
      
      
          }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hausegger.michael@googlemail.com Michael Hausegger
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: