From 81764c0a4a0a1807ac2a1cab2e4d99d588d09669 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 11 Mar 2016 18:03:21 +0000 Subject: [PATCH] JAL-1478 Fixed ArrayIndexOutOfBoundsException while performing NW mapping --- src/MCview/PDBChain.java | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 1.7.10.2