Skip to content

Conversation

@bvanfleet
Copy link
Owner

Fix edge case in ReadNextTransaction where EOF may cause an invalid X12FlatTransaction to be returned.
Fix string documentation in X12Parser.

…2FlatTransaction to be returned.

Fix string documentation in X12Parser.
@bvanfleet bvanfleet added the enhancement New feature or request label Jan 13, 2021
@bvanfleet bvanfleet self-assigned this Jan 13, 2021
Comment on lines +190 to +192
case null:
// This case is added to handle where EOF is reached with no segments read.
break;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this was hit with a lot of minor formatting changes that don't actually change the file. This bit is the core of this PR, where we catch the case where EOF is hit before we read any segments.

@bvanfleet bvanfleet merged commit 3444363 into master Jan 13, 2021
apeiris pushed a commit to apeiris/X12.NET that referenced this pull request Jan 27, 2021
…anfleet#22 from bvanfleet/u/bvanfleet/documentation

Update X12StreamReader class to fix edge case around ReadNextTransaction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants