Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.16.0
-
None
-
Unknown
Description
ZipIterator sometimes return null when using with split
// My route
from("file:///tmp") .unmarshall(zipFileDataFormat) .split(body()) .to("mock:result")
Sometimes, I receive null body in the unit test i.e. I have zip file with 2 entries. I would sometimes receive 3 exchanges. The third exchange has null body. I also tested with zipfile with single entries. The result is similar.
Workaround, I use filter on body.