ActiveMQTextMessage toString() method throws NPE if text is null
----------------------------------------------------------------

                 Key: AMQ-2046
                 URL: https://issues.apache.org/activemq/browse/AMQ-2046
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.2.0
            Reporter: Matthew Roy


The new toString() method assumes that the message has a non null value, so 
throws an NPE on line 154 when the message's text is null.

if (text.length() > 63) {

should be:

if (text!=null && text.length() > 63) {
                        

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