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

IOUtils.toByteArray(null) no longer throws a NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.9.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: