cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/6] git commit: [CXF-5872] Fix NPE when Dispatch clients trying to process a fault
Date Fri, 11 Jul 2014 18:35:56 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes c651e2671 -> bd5ba39e1


[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/bcf868cf
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/bcf868cf
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/bcf868cf

Branch: refs/heads/2.7.x-fixes
Commit: bcf868cf12af48b158e564ce3a0dc06e2e71d58f
Parents: c651e26
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:31:23 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/bcf868cf/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 fcaab3d..9f2a178 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 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