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

(7.1.0) Possible Null Pointer Exception during message properties read using XmlDataImporter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.DR7
    • 7.1.0.DR3
    • ActiveMQ
    • None

      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)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: