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

NullPointerException defect in ChecksumCalculatingInputStream#getValue()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.15
    • None
    • 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

            Unassigned Unassigned
            hausegger.michael@googlemail.com Michael Hausegger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: