activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AMQ-2046) ActiveMQTextMessage toString() method throws NPE if text is null
Date Tue, 30 Dec 2008 08:36:06 GMT

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

Dejan Bosanac reassigned AMQ-2046:
----------------------------------

    Assignee: Dejan Bosanac

> 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
>            Assignee: Dejan Bosanac
>
> 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