You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/12/27 14:21:35 UTC

svn commit: r359209 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/InstanceDispatcher.java

Author: dims
Date: Tue Dec 27 05:21:32 2005
New Revision: 359209

URL: http://svn.apache.org/viewcvs?rev=359209&view=rev
Log:
defensive check


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/InstanceDispatcher.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/InstanceDispatcher.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/InstanceDispatcher.java?rev=359209&r1=359208&r2=359209&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/InstanceDispatcher.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/InstanceDispatcher.java Tue Dec 27 05:21:32 2005
@@ -108,11 +108,11 @@
         }
         String scope = service.getScope();
 
-        if (Constants.SCOPE_TRANSPORT_SESSION.equals(scope)) {
-            ServiceContext sreviceContext = sessionContext.getServiceContext(service);
+        if (Constants.SCOPE_TRANSPORT_SESSION.equals(scope) && sessionContext != null) {
+            ServiceContext serviceContext = sessionContext.getServiceContext(service);
             //found the serviceContext from session context , so adding that into msgContext
-            if (sreviceContext != null) {
-                msgContext.setServiceContext(sreviceContext);
+            if (serviceContext != null) {
+                msgContext.setServiceContext(serviceContext);
             }
         }
     }