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

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.1.0.DR7
    • 7.1.0.DR3
    • ActiveMQ
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: