You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Chris Heisterkamp (Jira)" <ji...@apache.org> on 2020/09/28 19:02:00 UTC

[jira] [Updated] (IO-690) IOUtils.toByteArray(null) no longer throws a NullPointerException

     [ https://issues.apache.org/jira/browse/IO-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Heisterkamp updated IO-690:
---------------------------------
    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.

  was:
The javadoc for IOUtils.toByteArray still says
```

Throws:
NullPointerException - if the input is null

```

but in 2.8.0 it returns and empty byte[] instead.


> IOUtils.toByteArray(null) no longer throws a NullPointerException
> -----------------------------------------------------------------
>
>                 Key: IO-690
>                 URL: https://issues.apache.org/jira/browse/IO-690
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>            Reporter: Chris Heisterkamp
>            Priority: Minor
>
> 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.



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