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

XmlStreamReader throws IOException stream closed on null input stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      Had to go into the debugger because when some code passed null into the org.apache.commons.io.input.XmlStreamReader constructor it threw an IOException with the message "Stream closed".

       

      This is not accurate. There was no stream. It was null. If a NullPointerException had been thrown instead, this would have been easier to debug.

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elharo Elliotte Rusty Harold
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m