Skip to content

Commit b824612

Browse files
committed
Fixing npe introduced in last commit
1 parent 508e770 commit b824612

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmcif/SimpleMMcifConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ private void setCrystallographicInfoMetadata() {
12861286
PDBCrystallographicInfo crystalInfo = structure.getCrystallographicInfo();
12871287

12881288
boolean nonStd = false;
1289-
if (!crystalInfo.getCrystalCell().checkScaleMatrix(parsedScaleMatrix)) {
1289+
if (crystalInfo.getCrystalCell()!=null && !crystalInfo.getCrystalCell().checkScaleMatrix(parsedScaleMatrix)) {
12901290
nonStd = true;
12911291
}
12921292

0 commit comments

Comments
 (0)