axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r434300 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
Date Thu, 24 Aug 2006 04:38:09 GMT
Author: deepal
Date: Wed Aug 23 21:38:09 2006
New Revision: 434300

URL: http://svn.apache.org/viewvc?rev=434300&view=rev
Log:
fixed the service client cleanup problem

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java?rev=434300&r1=434299&r2=434300&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
Wed Aug 23 21:38:09 2006
@@ -748,8 +748,13 @@
      */
     public void cleanup() throws AxisFault {
         if (!createConfigCtx) {
-            configContext.getAxisConfiguration().removeServiceGroup(
-                    ((AxisServiceGroup) axisService.getParent()).getServiceGroupName());
+            String serviceGroupName = ((AxisServiceGroup) axisService.getParent()).getServiceGroupName();
+            AxisConfiguration axisConfiguration = configContext.getAxisConfiguration();
+            AxisServiceGroup asg = axisConfiguration.getServiceGroup(serviceGroupName);
+            if (asg != null) {
+                axisConfiguration.removeServiceGroup(
+                        serviceGroupName);
+            }
         }
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message