Skip to content

Commit b5e9bd5

Browse files
committed
Resolve #523 8 Null check should be first.
1 parent 7c11ff2 commit b5e9bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/extra/src/main/java/org/openscience/cdk/io/CrystClustReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private IChemFile readChemFile(IChemFile file) throws CDKException {
215215
seq.addChemModel(model);
216216
} else {
217217
logger.debug("Format seems broken. Skipping these lines:");
218-
while (!line.startsWith("frame:") && input.ready() && line != null) {
218+
while (line != null && !line.startsWith("frame:") && input.ready()) {
219219
line = input.readLine();
220220
logger.debug(lineNumber++ + ": ", line);
221221
}

0 commit comments

Comments
 (0)