You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/01/18 18:28:00 UTC
[jira] [Resolved] (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 ]
Gary D. Gregory resolved IO-690.
--------------------------------
Fix Version/s: 2.9.0
Resolution: Fixed
In git master, please verify and close this ticket.
> 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
> Assignee: Gary D. Gregory
> Priority: Minor
> Fix For: 2.9.0
>
>
> 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)