You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (JIRA)" <ji...@apache.org> on 2012/07/19 16:30:35 UTC
[jira] [Created] (FUNCTOR-21) NPE when UnarySequence is created
with an arraylist containing a null element
Bruno P. Kinoshita created FUNCTOR-21:
-----------------------------------------
Summary: NPE when UnarySequence is created with an arraylist containing a null element
Key: FUNCTOR-21
URL: https://issues.apache.org/jira/browse/FUNCTOR-21
Project: Commons Functor
Issue Type: Bug
Environment: Java 1.6
Debian 6
Reporter: Bruno P. Kinoshita
Assignee: Bruno P. Kinoshita
Priority: Minor
If you create a UnarySequence<?> with an ArrayList that contains a null element and execute the run method, you will receive a NullPointerException.
The same happens when you use the constructor UnarySequence(UnaryProcedure<? super A>... procedures). A null procedure is converted into a list with the null object as the sole element.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (FUNCTOR-21) NPE when UnarySequence is created
with an arraylist containing a null element
Posted by "Bruno P. Kinoshita (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FUNCTOR-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno P. Kinoshita resolved FUNCTOR-21.
---------------------------------------
Resolution: Fixed
Fixed in r1363382. An extra verification was added to the then method. Tests in place.
> NPE when UnarySequence is created with an arraylist containing a null element
> -----------------------------------------------------------------------------
>
> Key: FUNCTOR-21
> URL: https://issues.apache.org/jira/browse/FUNCTOR-21
> Project: Commons Functor
> Issue Type: Bug
> Environment: Java 1.6
> Debian 6
> Reporter: Bruno P. Kinoshita
> Assignee: Bruno P. Kinoshita
> Priority: Minor
> Labels: npe
>
> If you create a UnarySequence<?> with an ArrayList that contains a null element and execute the run method, you will receive a NullPointerException.
> The same happens when you use the constructor UnarySequence(UnaryProcedure<? super A>... procedures). A null procedure is converted into a list with the null object as the sole element.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira