Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5824

(7.0.z) ARTEMIS-653 - Possible Null Pointer Exception during message properties read using XmlDataImporter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.0.5.CR1, 7.0.5.GA
    • 7.0.1.CR2
    • ActiveMQ
    • None
    • EAP 7.0.5

      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

              mstyk_jira Martin Styk (Inactive)
              mstyk_jira Martin Styk (Inactive)
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: