Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-653

Possible Null Pointer Exception during message properties read using XmlDataImporter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      There is possible NPE in XMLDataImporter#processMessageProperties

      realValue = null;
      
       case XmlDataConstants.PROPERTY_TYPE_SIMPLE_STRING:
                  if (!value.equals(XmlDataConstants.NULL)) {
                     realValue = value;
                  }
                  message.putStringProperty(new SimpleString(key), new SimpleString(realValue));
                  break;
      

      If realValue is null, new SimpleString(realValue) throws NPE

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mstyk Martin Styk
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: