[ 
https://issues.apache.org/jira/browse/CAMEL-26238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-26238.
---------------------------------
    Resolution: Fixed

Fixed by https://github.com/apache/camel/pull/29079 (merged as ee986cad332a on 
main, 4.24.0).

_Claude Code on behalf of Claus Ibsen_

> 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)

Reply via email to