albfernandez / javadbf

Java library for reading and writing Xbase (dBase/DBF) files.
GNU Lesser General Public License v3.0
224 stars 98 forks source link

Allow for null values to be written to fields #62

Closed jvanhercke closed 4 years ago

jvanhercke commented 4 years ago

Datatypes allow 'null' value to be written (stored as blanks), but the current code does not allow for this condition.

albfernandez commented 4 years ago

One line before your changes there is a condition "if (value == null) { continue; }" that should allow to write null fields.

Tell me if I'm missing something or provide a test case please.

Thanks for your interest and for the pull request

jvanhercke commented 4 years ago

You are correct. My mistake. Forget about it.