DbfDataReader icon indicating copy to clipboard operation
DbfDataReader copied to clipboard

Empty Date give Exception

Open LiteLessomoroff opened this issue 2 years ago • 0 comments

Describe the bug Error happened on dbf table init, in constructor, where exists date field and it do not contains date(empty). Before adding date column(which may be empty) in dbf file, it worked fine.

To Reproduce Steps to reproduce the behavior:

  1. Create dbf which contains field date type and set empty value to this
  2. Initialize DbfTable using (var dbfTable = new DbfTable(dbfPath, Encoding.UTF8))// it must fall

Expected behavior Change mapping to DateTime?(or type which using in this operation with ? - nullable) - if possible or set it to default date value

LiteLessomoroff avatar Feb 15 '22 06:02 LiteLessomoroff