camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-11264: Fixed potential NPE in DefaultUndertowHttpBinding
Date Mon, 15 May 2017 06:36:37 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x 6abc8a776 -> b66112346


CAMEL-11264: Fixed potential NPE in DefaultUndertowHttpBinding


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

Branch: refs/heads/camel-2.19.x
Commit: b66112346ee29f6c12447d40d5b1eaa763924a82
Parents: 6abc8a7
Author: Prasanth Pagolu <ppagolu@redhat.com>
Authored: Fri May 12 17:35:24 2017 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Mon May 15 08:36:21 2017 +0200

----------------------------------------------------------------------
 .../camel/component/undertow/DefaultUndertowHttpBinding.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b6611234/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
index 6b28f2a..3d2578a 100644
--- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
+++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
@@ -325,7 +325,7 @@ public class DefaultUndertowHttpBinding implements UndertowHttpBinding
{
                 // we failed due an exception so print it as plain text
                 StringWriter sw = new StringWriter();
                 PrintWriter pw = new PrintWriter(sw);
-                exception.getCause().printStackTrace(pw);
+                exception.printStackTrace(pw);
 
                 // the body should then be the stacktrace
                 body = ByteBuffer.wrap(sw.toString().getBytes());


Mime
View raw message