Could you try the current CVS version? I patch the fillWithData routine so that it should work now.
Henner > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im > Auftrag von Joseph Prosser > Gesendet: Freitag, 17. Juni 2005 16:05 > An: jdbforms-interest@lists.sourceforge.net > Betreff: [dbforms] empty date strings > > Hi Folks, > > I have a date field on my form and I don't want to make it a > required field. > > If I leave it blank however I get an exception on inserts or > updates. Is there any way around this? > Cheers, > -Joe > > java.lang.NullPointerException > at java.util.Calendar.setTime(Calendar.java:1032) > at > java.text.SimpleDateFormat.format(SimpleDateFormat.java:785) > at > java.text.SimpleDateFormat.format(SimpleDateFormat.java:778) > at java.text.DateFormat.format(DateFormat.java:314) > at > org.postgresql.jdbc2.PreparedStatement.setDate(PreparedStateme > nt.java:341) > at > org.postgresql.jdbc2.PreparedStatement.setObject(PreparedState > ment.java:540) > at > org.postgresql.jdbc2.PreparedStatement.setObject(PreparedState > ment.java:558) > at > org.dbforms.config.JDBCDataHelper.fillWithData(JDBCDataHelper. > java:215) > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies from IBM. Find simple to follow Roadmaps, > straightforward articles, informative Webcasts and more! Get > everything you need to get up to speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > DbForms Mailing List > > http://www.wap-force.net/dbforms > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms