You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2008/12/30 09:50:05 UTC

[jira] Resolved: (AMQ-2046) ActiveMQTextMessage toString() method throws NPE if text is null

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

Dejan Bosanac resolved AMQ-2046.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3.0

Fixed in SVN revision 730071

> 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
>             Fix For: 5.3.0
>
>
> 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.