You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/02/09 16:35:20 UTC

svn commit: r742565 - /ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy

Author: jleroux
Date: Mon Feb  9 15:35:19 2009
New Revision: 742565

URL: http://svn.apache.org/viewvc?rev=742565&view=rev
Log:
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