You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/04/13 11:39:00 UTC

[jira] [Created] (IO-665) XmlStreamReader throws IOException stream closed on null input stream

Elliotte Rusty Harold created IO-665:
----------------------------------------

             Summary: XmlStreamReader throws IOException stream closed on null input stream
                 Key: IO-665
                 URL: https://issues.apache.org/jira/browse/IO-665
             Project: Commons IO
          Issue Type: Bug
            Reporter: Elliotte Rusty Harold


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.

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)