activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Roy (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-2046) ActiveMQTextMessage toString() method throws NPE if text is null
Date Mon, 29 Dec 2008 19:01:05 GMT
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.


Mime
View raw message