From: jprocter Date: Sun, 27 Feb 2011 18:35:54 +0000 (+0000) Subject: patch for occasional ArrayIndexOutOfBounds X-Git-Tag: Release_2_7~232 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c8f5deb89ce327cd4a103025122e2ee11a4c97fb;p=jalview.git patch for occasional ArrayIndexOutOfBounds --- diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index 27c579a..64f5d0b 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -336,7 +336,7 @@ public class AnnotationLabels extends Panel implements ActionListener, int end = getSelectedRow(evt.getY() + scrollOffset); - if (start != end) + if (start>-1 && start != end) { // Swap these annotations AlignmentAnnotation startAA = ap.av.alignment