[
https://issues.apache.org/jira/browse/CAMEL-26238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-26238:
----------------------------------------
Assignee: Andrea Cosentino
> camel-jcache - PUTALL with a body that is not a Map fails with a bare
> NullPointerException
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-26238
> URL: https://issues.apache.org/jira/browse/CAMEL-26238
> Project: Camel
> Issue Type: Bug
> Components: camel-jcache
> Reporter: Claus Ibsen
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 4.24.0
>
>
> Found while adding the catalog body types of jcache (CAMEL-24961, PR #28397).
> h4. 1. PUTALL with a non-Map body
> {{JCacheProducer}} PUTALL (main 2a465aa4814c, lines 96-102) has an empty
> {{validate}} and calls {{cache.putAll(exchange.getIn().getBody(Map.class))}},
> so a body that is not a Map fails with a bare NullPointerException "map is
> null". Checked on 4.24.0-SNAPSHOT with JCache on Hazelcast.
> Proposed: validate that the body is a Map and fail with a clear message.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)