You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rustam Matusevic (JIRA)" <ji...@apache.org> on 2013/01/31 13:21:13 UTC

[jira] [Created] (IO-365) NullPointerException IOUtils

Rustam Matusevic created IO-365:
-----------------------------------

             Summary: NullPointerException IOUtils
                 Key: IO-365
                 URL: https://issues.apache.org/jira/browse/IO-365
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.2
            Reporter: Rustam Matusevic
            Priority: Trivial


This is normal way to do like this?
{code}
    public static InputStream toInputStream(String input) { // if i put null here?
        byte[] bytes = input.getBytes();
        return new ByteArrayInputStream(bytes);
    }
{code}

You might to warn users of framework, you know throw some or handle it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira