camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject git commit: [CAMEL-6625]potential NPE in CxfConsumer if the PAYLOAD not match the ServiceModel (cherry picked from commit 70b40086608ca99bebd563d97a2b5f3c15488495)
Date Mon, 12 Aug 2013 07:58:13 GMT
Updated Branches:
  refs/heads/camel-2.10.x d62ba5fd0 -> f673c92d2


[CAMEL-6625]potential NPE in CxfConsumer if the PAYLOAD not match the ServiceModel
(cherry picked from commit 70b40086608ca99bebd563d97a2b5f3c15488495)


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f673c92d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f673c92d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f673c92d

Branch: refs/heads/camel-2.10.x
Commit: f673c92d2bd6a1f0145146c6d97464bcd9d9609e
Parents: d62ba5f
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Mon Aug 12 15:53:13 2013 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Mon Aug 12 15:57:54 2013 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/component/cxf/CxfConsumer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f673c92d/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
index aabfdda..470603b 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
@@ -151,7 +151,7 @@ public class CxfConsumer extends DefaultConsumer {
 
                 BindingOperationInfo boi = cxfExchange.getBindingOperationInfo();
                 // make sure the "boi" is remained as wrapped in PAYLOAD mode
-                if (dataFormat == DataFormat.PAYLOAD && boi.isUnwrapped()) {
+                if (boi != null && dataFormat == DataFormat.PAYLOAD && boi.isUnwrapped())
{
                     boi = boi.getWrappedOperation();
                     cxfExchange.put(BindingOperationInfo.class, boi);
                 }


Mime
View raw message