Skip to content

Commit 7c03622

Browse files
author
Sebastian Bittrich
committed
adds AltLoc NullPointerException test
1 parent f26563d commit 7c03622

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@
2121
import static org.junit.Assert.*;
2222

2323
public class CifFileConsumerImplTest {
24+
/**
25+
* java.lang.NullPointerException - failed for /var/bcif/hm/2hmz.bcif
26+
*/
27+
@Test
28+
@Ignore("ignored for now as Bcif file source may change - currently using local files")
29+
public void testAltLocCleanup() throws IOException, StructureException {
30+
StructureIO.getAtomCache().setUseMmCif(true);
31+
StructureIO.getStructure("2hmz");
32+
Structure cif = loadLocalCif("2hmz");
33+
Structure bcif = loadLocalBcif("2hmz");
34+
}
35+
2436
/**
2537
* java.lang.NumberFormatException: multiple points have been thrown.
2638
*/

biojava-structure/src/main/java/org/biojava/nbio/structure/io/cif/CifFileConsumerImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,6 @@ public void finish() {
11121112
SeqRes2AtomAligner.storeUnAlignedSeqRes(structure, seqResChains, params.isHeaderOnly());
11131113
}
11141114

1115-
// TODO java.lang.NullPointerException - failed for /var/bcif/hm/2hmz.bcif
11161115
// Now make sure all altlocgroups have all the atoms in all the groups
11171116
StructureTools.cleanUpAltLocs(structure);
11181117

0 commit comments

Comments
 (0)