Otavio Rodolfo Piske created CAMEL-21663:
--------------------------------------------
Summary: camel-sjms2: lack of null check causes NPE and affects
performance
Key: CAMEL-21663
URL: https://issues.apache.org/jira/browse/CAMEL-21663
Project: Camel
Issue Type: Task
Components: camel-sjms, camel-sjms2
Affects Versions: 4.9.0, 4.8.3, 4.10.0
Reporter: Otavio Rodolfo Piske
Assignee: Otavio Rodolfo Piske
Attachments: Screenshot 2025-01-27 at 14.27.48.png
Lack of a null check
[here|https://github.com/apache/camel/blob/camel-4.8.3/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/jms/JmsMessageHelper.java#L435],
makes the rather inexpressive "getJMSCorrelationID" quite slow as the JMS
client can return null, causing the string initialization to throw an NPE.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)