You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2025/01/28 12:53:00 UTC

[jira] [Updated] (CAMEL-21663) camel-sjms2: lack of null check causes NPE and affects performance

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

Otavio Rodolfo Piske updated CAMEL-21663:
-----------------------------------------
    Fix Version/s: 4.8.4
                   4.10.0

> 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.8.3, 4.9.0, 4.10.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>             Fix For: 4.8.4, 4.10.0
>
>         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)