You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2015/04/02 11:51:03 UTC

Re: NullPointerException on empty List in AbstractListAggregationStrategy

Hi

I logged a ticket to not forget about this
https://issues.apache.org/jira/browse/CAMEL-8592

On Mon, Mar 30, 2015 at 10:56 AM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Yeah sounds like a bug. You are welcome to log a JIRA and provide a
> patch with a fix.
> http://camel.apache.org/support
>
> On Sun, Mar 29, 2015 at 3:38 AM, JamKage <ja...@gmail.com> wrote:
>> If a custom AbstractListAggregationStrategy is used to aggregate an empty
>> List (e.g. after using split on an empty list and using the aggregation
>> strategy), a NPE is thrown:
>>
>>
>>
>> A  unit test
>> <http://camel.465427.n5.nabble.com/file/n5764965/CustomListAggregationStrategyEmptySplitTest.java>
>> is attached to show this failure.
>>
>> Pretty sure this is a bug, but wanted to maintain common courtesy and ask
>> the community before raising a JIRA ticket. I'm also happy to issue a pull
>> request; the fix is fairly trivial.
>>
>> Cheers,
>>
>> James
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/NullPointerException-on-empty-List-in-AbstractListAggregationStrategy-tp5764965.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/