Closed TheEvilPenguin closed 6 years ago
Thanks for the fix and the PR. I added some addition unit tests to reproduce the issue. I decided to consolidate the code that checks for nulls so it's not repeated everywhere. The fix is included in Release 2.1.2.
If I use IFixedLengthTypeReader.RecordPartitioned to skip the final record in a fixed length file, a NullReferenceException will be thrown in FixedLengthReader.parsePartitions():
at FlatFiles.FixedLengthReader.partitionRecord(FixedLengthSchema schema, String record) at FlatFiles.FixedLengthReader.partitionWithFilter() at FlatFiles.FixedLengthReader.parsePartitions() at FlatFiles.FixedLengthReader.Read() at FlatFiles.TypeMapping.TypedReader`1.Read() at...