James Netherton created CAMEL-27027:
---------------------------------------
Summary: camel-core: Message history fails with a
NullPointerException when a body's class has no canonical name
Key: CAMEL-27027
URL: https://issues.apache.org/jira/browse/CAMEL-27027
Project: Camel
Issue Type: Bug
Components: came-core
Affects Versions: 4.24.0
Reporter: James Netherton
Assignee: James Netherton
Fix For: 4.24.0
With message history on (the default in Camel JBang), the body type registry
from CAMEL-25750 stores null as the type of a body whose class has no canonical
name: an anonymous, local or hidden class such as a lambda. The next exchange
that reaches the same step fails with NullPointerException in
DefaultBodyTypeRegistry$NodeTypes.containsType. Found by the Kamelets
parser-max-size integration test, which passes new File(...) { long length()
{...}
} bodies.
Suggested fix: fall back to the class name.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)