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

Kayvan Mojarrad updated AMQ-2197:
---------------------------------

    Attachment: ActiveMQTextMessagePatch.txt

A simple patch to check for null message text.

> ActiveMQTextMessage.toString() throws a NullPointerException if the message 
> text is null.
> -----------------------------------------------------------------------------------------
>
>                 Key: AMQ-2197
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2197
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: ActiveMQ version 5.2.0, Atomikos transaction manager 
> version 3.5.3, Spring framework version 2.5.5
>            Reporter: Kayvan Mojarrad
>         Attachments: ActiveMQTextMessagePatch.txt
>
>
> ActiveMQTextMessage.toString() throws a NullPointerException if the message 
> text is null.
> Ordinarily this is not a problem, however, when used in conjunction with 
> Atomikos transaction manager, AtomikosJmsXaSessionProxy.createTextMessage() 
> attempts to log the message before returning it to the client resulting in a 
> NullPointerException being thrown out of Session.createTextMessage().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to