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:36:06 UTC
[jira] Assigned: (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 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.