Author: jonesde
Date: Sat May 19 12:16:44 2007
New Revision: 539792
URL:
http://svn.apache.org/viewvc?view=rev&rev=539792Log:
Applied fix from trunk for revision: 539790
Modified:
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java
Modified: ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java?view=diff&rev=539792&r1=539791&r2=539792==============================================================================
--- ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java (original)
+++ ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java Sat May 19 12:16:44 2007
@@ -756,7 +756,11 @@
break;
case 14:
- sqlP.setValue(new java.sql.Date(((java.util.Date) fieldValue).getTime()));
+ if (fieldValue != null) {
+ sqlP.setValue(new java.sql.Date(((java.util.Date) fieldValue).getTime()));
+ } else {
+ sqlP.setValue((java.sql.Date) null);
+ }
break;
case 15: