Skip to content

Commit

Permalink
Resolve #523 8 Null check should be first.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Jan 2, 2019
1 parent 7c11ff2 commit b5e9bd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private IChemFile readChemFile(IChemFile file) throws CDKException {
seq.addChemModel(model);
} else {
logger.debug("Format seems broken. Skipping these lines:");
while (!line.startsWith("frame:") && input.ready() && line != null) {
while (line != null && !line.startsWith("frame:") && input.ready()) {
line = input.readLine();
logger.debug(lineNumber++ + ": ", line);
}
Expand Down

0 comments on commit b5e9bd5

Please sign in to comment.