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

Claus Ibsen commented on CAMEL-7146:
------------------------------------

Yeah completion size = 1 doesnot so much sense, but you can also have a 
completion predicate that just returns true each time, and have the same 
situation with only 1 aggregated.

> NPE in Aggregator when completionSize = 1
> -----------------------------------------
>
>                 Key: CAMEL-7146
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7146
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.12.2
>            Reporter: Stefan Burkard
>            Priority: Trivial
>              Labels: aggregator
>             Fix For: 2.12.3, 2.13.0
>
>         Attachments: Camel-7146-example.tgz, Camel-7146-stacktrace.txt
>
>
> A Camel aggregator with persistence repository cannot have a completionSize 
> of 1. If this is configured, every message produces a NPE with the attached 
> stacktrace. 
> I have also attached a small example project that shows the Exception. As 
> soon as the completionSize is > 1, it runs fine.
> This is just a minor flaw, since I cannot think about a really useful case 
> with completionSize 1, but it worked with earlier versions of Camel. 
> As an alternative (if completionSize 1 should not be used), Camel could throw 
> an error during Context startup when completionSize < 2.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to