Skip to content

Commit

Permalink
Merge pull request #5 from inm-certi/master
Browse files Browse the repository at this point in the history
Fix parser to work with empty lines after EOF
  • Loading branch information
j123b567 authored May 25, 2018
2 parents ba89a9a + ee4a0b9 commit 6a2b638
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cz/jaybee/intelhex/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ public void parse() throws IntelHexException, IOException {
String recordStr;

while ((recordStr = reader.readLine()) != null) {
// Ignore if this is a blank line.
if (recordStr.isEmpty()) {
continue;
}
Record record = parseRecord(recordStr);
processRecord(record);
recordIdx++;
Expand Down

0 comments on commit 6a2b638

Please sign in to comment.