camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [2/2] camel git commit: CAMEL-11264: Fixed potential NPE in DefaultUndertowHttpBinding
Date Mon, 15 May 2017 06:35:20 GMT
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/8e1d10a4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8e1d10a4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8e1d10a4

Branch: refs/heads/master
Commit: 8e1d10a46a91bc3c8e5cd100d80ed30991fbf307
Parents: 805fa85
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:34:03 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/8e1d10a4/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