Skip to content

Commit 71a6ddf

Browse files
committed
Fixing NPE in test
1 parent bc8f31a commit 71a6ddf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/io/TestLongPdbVsMmCifParsing.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void testVeryLongPdbVsMmCif() throws IOException, StructureException {
124124

125125
@Test
126126
public void testSingle() throws IOException, StructureException {
127-
testAll(Arrays.asList("4mml"));
127+
testAll(Arrays.asList("4a10"));
128128
}
129129

130130
@After
@@ -211,7 +211,7 @@ private void testStructureMethods(Structure sPdb, Structure sCif) {
211211
// sugar polymers are not in pdb at all: we avoid them
212212
boolean canCompareCompoundsSize = true;
213213
for (Compound compound: sCif.getCompounds()) {
214-
if (compound.getMolName().contains("SUGAR")) {
214+
if (compound.getMolName()==null || compound.getMolName().contains("SUGAR")) {
215215
canCompareCompoundsSize = false;
216216
break;
217217
}

0 commit comments

Comments
 (0)