JAL-1998 bugfix for division by zero error for PDB entries with chain(s) consisiting...
[jalview.git] / src / MCview / PDBChain.java
index 6d5f9fe..a43626f 100755 (executable)
@@ -252,7 +252,7 @@ public class PDBChain
      * If > 99% 'P', flag as nucleotide; note the count doesn't include the last
      * residue
      */
-    if (residues.size() > 0 && (numNa / (residues.size() - 1) > 0.99))
+    if (residues.size() > 1 && (numNa / (residues.size() - 1) > 0.99))
     {
       isNa = true;
     }