diff --git a/src/DbfDataReader/DbfValueDateTime.cs b/src/DbfDataReader/DbfValueDateTime.cs index 9b128a1..e3fa837 100644 --- a/src/DbfDataReader/DbfValueDateTime.cs +++ b/src/DbfDataReader/DbfValueDateTime.cs @@ -11,7 +11,15 @@ public DbfValueDateTime(int start, int length) : base(start, length) public override void Read(ReadOnlySpan bytes) { - if (bytes[0] == '\0') + int i; + for (i = 0; i < bytes.Length; i++) + { + if (bytes[0] != '\0') + { + break; + } + } + if (i == bytes.Length) { Value = null; }