Author: mor
Date: Wed Jan 21 04:15:06 2009
New Revision: 736297
URL:
http://svn.apache.org/viewvc?rev=736297&view=revLog:
Fix NPE. Applied patch from OFBIZ-2134 (
https://issues.apache.org/jira/browse/OFBIZ-2134)
Thanks Mridul Pathak for patch and Pranay Pandey for testing.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=736297&r1=736296&r2=736297&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java Wed Jan 21 04:15:06 2009
@@ -998,7 +998,7 @@
ServiceUtil.returnError(e.getMessage());
}
} else {
- dataResourceCtx.put("dataResourceTypeId", "URL_RESOURCE");
+ dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
Map<String, Object> dataResourceResult = FastMap.newInstance();
try {
dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);
@@ -1028,7 +1028,7 @@
}
}
} else {
- dataResourceCtx.put("dataResourceTypeId", "URL_RESOURCE");
+ dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
Map<String, Object> dataResourceResult = FastMap.newInstance();
try {
dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);