X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationPanel.java;h=6c9cb6c4e286dadcfd016abb9e3928379a0e6a05;hb=155a17a423e980849fd4dc5f857da1a72b0010b9;hp=98e9b3ed0614dbd13297d2461be265c24ffd72e6;hpb=6d3348aa17d3bd5c9b3f028d97b9dde965e4a78c;p=jalview.git diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 98e9b3e..6c9cb6c 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -633,7 +633,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, int yOffset = rowIndex[1]; AlignmentAnnotation[] allAnnotation = av.getAlignment() .getAlignmentAnnotation(); - if (allAnnotation==null || rowIndex[0]<0 || rowIndex[0]>allAnnotation.length) + if (allAnnotation==null || rowIndex[0]<0 || rowIndex[0]>=allAnnotation.length) { return false; }