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

XmlStreamReader throws IOException stream closed on null input stream

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elharo Elliotte Rusty Harold

              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

                  Issue deployment