svn commit: r578276 - /ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r578276 - /ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java

jleroux@apache.org
Author: jleroux
Date: Fri Sep 21 14:08:37 2007
New Revision: 578276

URL: http://svn.apache.org/viewvc?rev=578276&view=rev
Log:
Applied fix from trunk for revision: 572275

Modified:
    ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java

Modified: ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java?rev=578276&r1=578275&r2=578276&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java (original)
+++ ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ServiceDispatcher.java Fri Sep 21 14:08:37 2007
@@ -243,6 +243,10 @@
                 "/" + modelService.invoke + "] (" + modelService.engineName + ")", module);
         }
 
+        if (context == null) {
+            context = FastMap.newInstance();
+        }
+
         // setup the result map
         Map result = FastMap.newInstance();
         boolean isFailure = false;
@@ -483,6 +487,10 @@
         if (Debug.verboseOn()) {
             Debug.logVerbose("[ServiceDispatcher.runAsync] : prepareing service " + service.name + " [" + service.location + "/" + service.invoke +
                 "] (" + service.engineName + ")", module);
+        }
+        
+        if (context == null) {
+            context = FastMap.newInstance();
         }
 
         // setup the result map