svn commit: r606899 - /ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh

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

svn commit: r606899 - /ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh

bibryam
Author: bibryam
Date: Wed Dec 26 05:57:51 2007
New Revision: 606899

URL: http://svn.apache.org/viewvc?rev=606899&view=rev
Log:
Fix NPE in Product Associations screen.

Modified:
    ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh

Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh?rev=606899&r1=606898&r2=606899&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.bsh Wed Dec 26 05:57:51 2007
@@ -46,7 +46,7 @@
 fromDateStr = request.getParameter("FROM_DATE");
 
 Timestamp fromDate = null;
-if (UtilValidate.isNotEmpty(fromDateStr.length())) fromDate = Timestamp.valueOf(fromDateStr);
+if (UtilValidate.isNotEmpty(fromDateStr)) fromDate = Timestamp.valueOf(fromDateStr);
 if (fromDate == null) fromDate = (Timestamp)request.getAttribute("ProductAssocCreateFromDate");
 if (fromDate != null) context.put("fromDate", fromDate);