nickbabcock / Pdoxcl2Sharp

A Paradox Interactive general file parser
MIT License
39 stars 13 forks source link

Fix null string being the last token returned #15

Closed nickbabcock closed 11 years ago

nickbabcock commented 11 years ago

When using on the the static ParadoxParser methods and the action or entity consumes the entire stream, but stops before hitting the EOF, the next token returned from the static methods will be the string of \0. This is obviously no use to anyone.

The string shouldn't be returned and instead the EndOfStream should be marked as true.