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

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

     [ https://issues.apache.org/jira/browse/IO-665?focusedWorklogId=421530&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-421530 ]

ASF GitHub Bot logged work on IO-665:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Apr/20 18:39
            Start Date: 13/Apr/20 18:39
    Worklog Time Spent: 10m 
      Work Description: ottobackwards commented on pull request #112: IO-665  ensure that passing a null InputStream results in NPE with tests
URL: https://github.com/apache/commons-io/pull/112
 
 
   This pr adds a null check for the InputStream constructor of XmlStreamReader.  This makes it so that each contractor of type ( File, URL, URLConnection, InputStream ) throws NPE if passed a NULL for that type.
   
   Tests were added as well for each type.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 421530)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)