deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament (JIRA)" <>
Subject [jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays
Date Mon, 18 Mar 2013 14:38:17 GMT


John D. Ament commented on DELTASPIKE-321:

Added a test, to reproduce the NPE

	at java.util.Collections.addAll(
	at org.apache.deltaspike.core.impl.message.DefaultMessage.argument(

Commiting a Null check.
> DefaultMessage.argument(Serializable...) should guard against empty arrays
> --------------------------------------------------------------------------
>                 Key: DELTASPIKE-321
>                 URL:
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4-incubating
>            Reporter: Nicklas Karlsson
>            Assignee: John D. Ament
> If you have a method with ... parameters, it will be interpreted as an array. If it is
passed along to DefaultMessage.argument the object array is interpreted as an object and added
as such. Now that I mention it, wouldn't the flow be the same even if the array came populated
with data?

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:

View raw message