Author: jleroux
Date: Fri Sep 21 14:08:37 2007
New Revision: 578276
URL:
http://svn.apache.org/viewvc?rev=578276&view=revLog:
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