camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r759071 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
Date Fri, 27 Mar 2009 09:28:17 GMT
Author: davsclaus
Date: Fri Mar 27 09:28:11 2009
New Revision: 759071

URL: http://svn.apache.org/viewvc?rev=759071&view=rev
Log:
CAMEL-1492: Fixed NPE when endpoint not pprovided in JmsBinding.

Modified:
    camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java?rev=759071&r1=759070&r2=759071&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
Fri Mar 27 09:28:11 2009
@@ -277,7 +277,7 @@
             Object value = getValidJMSHeaderValue(headerName, headerValue);
             if (value != null) {
                 // must encode to safe JMS header name before setting property on jmsMessage
-                String key = endpoint.getJmsKeyFormatStrategy().encodeKey(headerName);
+                String key = jmsKeyFormatStrategy.encodeKey(headerName);
                 jmsMessage.setObjectProperty(key, value);
             } else if (LOG.isDebugEnabled()) {
                 // okay the value is not a primitive or string so we cannot sent it over
the wire



Mime
View raw message