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(PreparedStatement.java:341)
        at
org.postgresql.jdbc2.PreparedStatement.setObject(PreparedStatement.java:540)
        at
org.postgresql.jdbc2.PreparedStatement.setObject(PreparedStatement.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

Reply via email to