eppic-team / eppic

:white_check_mark::x:Evolutionary protein-protein interface classifier
http://eppic-web.org
Other
8 stars 3 forks source link

PDB files with water-only chains crash at interface calculation #212

Closed josemduarte closed 6 years ago

josemduarte commented 6 years ago

As of 3.0.4. The stack trace:

java.lang.ArrayIndexOutOfBoundsException: 0
    at org.biojava.nbio.structure.contact.BoundingBox.<init>(BoundingBox.java:79)
    at org.biojava.nbio.structure.xtal.UnitCellBoundingBox.setBb(UnitCellBoundingBox.java:76)
    at org.biojava.nbio.structure.xtal.UnitCellBoundingBox.setBbs(UnitCellBoundingBox.java:64)
    at org.biojava.nbio.structure.xtal.CrystalBuilder.calcInterfacesCrystal(CrystalBuilder.java:239)
    at org.biojava.nbio.structure.xtal.CrystalBuilder.getUniqueInterfaces(CrystalBuilder.java:203)
    at eppic.Main.doFindInterfaces(Main.java:271)
    at eppic.Main.run(Main.java:953)
    at eppic.Main.run(Main.java:922)
    at eppic.Main.main(Main.java:896)

It seems that the same works fine in biojava5 branch.