cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/7] git commit: [CXF-5872] Fix NPE when Dispatch clients trying to process a fault
Date Fri, 11 Jul 2014 19:11:45 GMT
[CXF-5872] Fix NPE when Dispatch clients trying to process a fault


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

Branch: refs/heads/2.6.x-fixes
Commit: 1da5667b895bcd94d115506921c504c97966af7f
Parents: 86b6948
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri Jul 11 12:43:21 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Jul 11 14:49:26 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/interceptor/ClientFaultConverter.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1da5667b/api/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java b/api/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
index 02e21e7..263cd0d 100644
--- a/api/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
+++ b/api/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
@@ -169,6 +169,9 @@ public class ClientFaultConverter extends AbstractPhaseInterceptor<Message>
{
             
             try {
                 Class<?> exClass = faultWanted.getProperty(Class.class.getName(), Class.class);
+                if (exClass == null) {
+                    return;
+                }
                 if (e == null) { 
                     Constructor<?> constructor = exClass.getConstructor(new Class[]{String.class});
                     e = constructor.newInstance(new Object[]{fault.getMessage()});


Mime
View raw message