cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/5] git commit: [CXF-5872] Fix NPE when Dispatch clients trying to process a fault
Date Fri, 11 Jul 2014 18:30:28 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/388ee561
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/388ee561
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/388ee561

Branch: refs/heads/master
Commit: 388ee56113467653f48f02d1d927b91a8ce9de45
Parents: 9be6ef6
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:29:30 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/388ee561/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java b/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
index fcaab3d..9f2a178 100644
--- a/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
+++ b/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
@@ -169,6 +169,9 @@ public class ClientFaultConverter extends AbstractInDatabindingInterceptor
{
             
             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