axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r547643 - /webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceGroupContextCommand.java
Date Fri, 15 Jun 2007 12:10:29 GMT
Author: azeez
Date: Fri Jun 15 05:10:27 2007
New Revision: 547643

URL: http://svn.apache.org/viewvc?view=rev&rev=547643
Log:
Null check for service group


Modified:
    webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceGroupContextCommand.java

Modified: webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceGroupContextCommand.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceGroupContextCommand.java?view=diff&rev=547643&r1=547642&r2=547643
==============================================================================
--- webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceGroupContextCommand.java
(original)
+++ webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceGroupContextCommand.java
Fri Jun 15 05:10:27 2007
@@ -55,8 +55,10 @@
         // If the ServiceGroupContext is not found, create it
         if (sgCtx == null) {
             AxisServiceGroup axisServiceGroup =
-                    configContext.getAxisConfiguration()
-                            .getServiceGroup(serviceGroupName);
+                    configContext.getAxisConfiguration().getServiceGroup(serviceGroupName);
+            if(axisServiceGroup == null){
+                return;
+            }
             sgCtx = new ServiceGroupContext(configContext, axisServiceGroup);
             sgCtx.setId(serviceGroupContextId);
             configContext.addServiceGroupContextIntoSoapSessionTable(sgCtx);  // TODO: Check
this



---------------------------------------------------------------------
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