Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-518

MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange) check for null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0-M2
    • 3.0
    • servicemix-core
    • None
    • Patch Available

    Description

      Around line 260 in MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange), need to check for a null after calling getContext when setting the Marshaller. In reference to thread: http://www.nabble.com/MessageExchangeFactoryImpl-NullPointerException-tf2064194.html

      if (getContext() != null) {
      PojoMarshaler marshaler = getContext().getActivationSpec().getMarshaler();
      if (marshaler != null)

      { exchange.setMarshaler(marshaler); }

      }

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            jthorn Jeremy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: