From: tcofoegbu Date: Fri, 11 Mar 2016 18:03:21 +0000 (+0000) Subject: JAL-1478 Fixed ArrayIndexOutOfBoundsException while performing NW mapping X-Git-Tag: Release_2_10_0~299 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=81764c0a4a0a1807ac2a1cab2e4d99d588d09669;p=jalview.git JAL-1478 Fixed ArrayIndexOutOfBoundsException while performing NW mapping --- diff --git a/src/MCview/PDBChain.java b/src/MCview/PDBChain.java index 228eede..7fdf11b 100755 --- a/src/MCview/PDBChain.java +++ b/src/MCview/PDBChain.java @@ -147,6 +147,10 @@ public class PDBChain if (as.astr1.charAt(i) == as.astr2.charAt(i)) { + if (pdbpos >= residues.size()) + { + continue; + } Residue res = residues.elementAt(pdbpos); for (Atom atom : res.atoms) {