Author: jleroux
Date: Mon Feb 9 15:35:19 2009
New Revision: 742565
URL:
http://svn.apache.org/viewvc?rev=742565&view=revLog:
Fix a NPE found by chance
Modified:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy
Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy?rev=742565&r1=742564&r2=742565&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy Mon Feb 9 15:35:19 2009
@@ -119,7 +119,7 @@
context.downloadData = downloadData;
} else if ("FULFILLMENT_EXTERNAL".equals(productContentTypeId)) {
context.contentFormName = "EditProductContentExternal";
-} else if (productContentTypeId.indexOf("ADDITIONAL_IMAGE") > -1) {
+} else if (productContentTypeId && productContentTypeId.indexOf("ADDITIONAL_IMAGE") > -1) {
context.contentFormName = "EditProductAdditionalImageContent";
} else {
//Assume it is a generic simple text content