Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2046

ActiveMQTextMessage toString() method throws NPE if text is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.0
    • 5.3.0
    • Broker
    • None

    Description

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

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            dejanb Dejan Bosanac
            mooseroy Matthew Roy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: