geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r521979 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
Date Sat, 24 Mar 2007 05:00:14 GMT
Author: gawor
Date: Fri Mar 23 22:00:13 2007
New Revision: 521979

URL: http://svn.apache.org/viewvc?view=rev&rev=521979
Log:
handler chains can be null (GERONIMO-3012)

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java?view=diff&rev=521979&r1=521978&r2=521979
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
Fri Mar 23 22:00:13 2007
@@ -17,6 +17,12 @@
 
 package org.apache.geronimo.axis2.client;
 
+import java.net.URI;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.handler.HandlerResolver;
+
 import org.apache.axis2.jaxws.context.WebServiceContextImpl;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -30,11 +36,6 @@
 import org.apache.geronimo.xbeans.javaee.HandlerChainsType;
 import org.apache.xmlbeans.XmlException;
 
-import javax.xml.namespace.QName;
-import javax.xml.ws.handler.HandlerResolver;
-import java.net.URI;
-import java.util.Map;
-
 /**
  * @version $Rev$ $Date$
  */
@@ -55,7 +56,10 @@
 
     protected HandlerChainsType getHandlerChains() {
         try {
-            return HandlerChainsDocument.Factory.parse(this.handlerChainsXML).getHandlerChains();
+            if (this.handlerChainsXML == null) //handlerChains could be null if they are
not specified.
+                return null;
+            else
+                return HandlerChainsDocument.Factory.parse(this.handlerChainsXML).getHandlerChains();
         } catch (XmlException e) {
             log.warn("Failed to deserialize handler chains", e);
             return null;



Mime
View raw message