commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyrille Artho (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-513) NullPointerException in SwitchTransformer.transform
Date Thu, 10 Apr 2014 04:46:15 GMT

    [ https://issues.apache.org/jira/browse/COLLECTIONS-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13964995#comment-13964995
] 

Cyrille Artho commented on COLLECTIONS-513:
-------------------------------------------

According to the documentation in Transformer.transform (the interface that is implemented),
the exception should probably be IllegalArgumentException, if any.
The javadoc of related classes suggests this as well.

> NullPointerException in SwitchTransformer.transform
> ---------------------------------------------------
>
>                 Key: COLLECTIONS-513
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-513
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Functor
>    Affects Versions: 4.0
>         Environment: Mac OS 10.9, Java 6 and Java 7
>            Reporter: Cyrille Artho
>         Attachments: BugReport2.java
>
>
> A relatively complex test case generated by Randoop results in a NullPointerException
in SwitchTransformer.transform.
> I'm not sure if this is an incorrect usage of the method, or if it is a real bug.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message