cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r627940 - /incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
Date Fri, 15 Feb 2008 03:57:21 GMT
Author: ffang
Date: Thu Feb 14 19:57:19 2008
New Revision: 627940

URL: http://svn.apache.org/viewvc?rev=627940&view=rev
Log:
add check for fault.getCuase() is not null to avoid NPE when use ws-addressing and a fault
is thrown

Modified:
    incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java

Modified: incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java?rev=627940&r1=627939&r2=627940&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
(original)
+++ incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
Thu Feb 14 19:57:19 2008
@@ -690,7 +690,7 @@
                 // http://www.w3.org/2005/02/addressing/wsdl schema
                 for (BindingFaultInfo bfi : bindingOpInfo.getFaults()) {
                     FaultInfo fi = bfi.getFaultInfo();
-                    if (t.getClass().isAssignableFrom(fi.getMessagePart(0).getTypeClass()))
{
+                    if (t != null && t.getClass().isAssignableFrom(fi.getMessagePart(0).getTypeClass()))
{
                         if (fi.getExtensionAttributes() == null) {
                             continue;
                         }



Mime
View raw message