iryndin / jdbf

Java utility to read/write DBF files
108 stars 77 forks source link

Invalid dates are throwing an exception in DbfRecord.toMap #15

Open hrj opened 9 years ago

hrj commented 9 years ago

While trying to read from an old database, I get this exception:

java.text.ParseException: Unparseable date: "
at java.text.DateFormat.parse(DateFormat.java:366)
    at net.iryndin.jdbf.util.JdbfUtils.parseDate(Unknown Source)
    at net.iryndin.jdbf.core.DbfRecord.getDate(Unknown Source)
    at net.iryndin.jdbf.core.DbfRecord.toMap(Unknown Source)
gstockr commented 8 years ago

I am having same issue as well when I use Visual FoxPro table.