Skip to content

Commit b896458

Browse files
committed
correcting a bug that takes place at the end of the file (if you reach it ;) )
git-svn-id: http://code.open-bio.org/repos/biojava/biojava-live/trunk@9912 7c6358e6-4a41-0410-a743-a5b2a554c398
1 parent a5790df commit b896458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biojava3-alignment/src/main/java/org/biojava3/alignment/io/StockholmFileParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ StockholmStructure parse(Scanner scanner) throws ParserException, IOException {
439439
}
440440

441441
linesCount++;
442-
} while (line != null);
442+
} while (scanner.hasNextLine());
443443

444444
} catch (IOException e) {
445445
e.printStackTrace();

0 commit comments

Comments
 (0)