Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-690

IOUtils.toByteArray(null) no longer throws a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • None
    • None

    Description

      The javadoc for IOUtils.toByteArray still says

      Throws:
      {{ NullPointerException - if the input is null}}

       

      but in 2.8.0 it returns an empty byte[] instead.

      Attachments

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              cheister Chris Heisterkamp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: