You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jeremy (JIRA)" <ji...@apache.org> on 2006/08/07 17:50:23 UTC

[jira] Created: (SM-518) MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange) check for null

MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange) check for null
-----------------------------------------------------------------------------------

                 Key: SM-518
                 URL: https://issues.apache.org/activemq/browse/SM-518
             Project: ServiceMix
          Issue Type: Improvement
          Components: servicemix-core
    Affects Versions: 3.0-M2
            Reporter: Jeremy


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);
     }
} 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (SM-518) MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange) check for null

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-518?page=all ]

Guillaume Nodet resolved SM-518.
--------------------------------

    Fix Version/s: 3.0-M3
       Resolution: Fixed
         Assignee: Guillaume Nodet

Author: gnodet
Date: Mon Aug  7 09:00:48 2006
New Revision: 429375

URL: http://svn.apache.org/viewvc?rev=429375&view=rev
Log:
SM-518: MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange) check for null 

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/MessageExchangeFactoryImpl.java



> MessageExchangeFactoryImpl.setDefaults(MessageExchangeImpl exchange) check for null
> -----------------------------------------------------------------------------------
>
>                 Key: SM-518
>                 URL: https://issues.apache.org/activemq/browse/SM-518
>             Project: ServiceMix
>          Issue Type: Improvement
>          Components: servicemix-core
>    Affects Versions: 3.0-M2
>            Reporter: Jeremy
>         Assigned To: Guillaume Nodet
>             Fix For: 3.0-M3
>
>
> 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);
>      }
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira