X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fgui%2FAnnotationPanel.java;h=6c9cb6c4e286dadcfd016abb9e3928379a0e6a05;hb=60b5bd72afd991cd1f0c0e622f3552552a8b6a93;hp=98e9b3ed0614dbd13297d2461be265c24ffd72e6;hpb=fd92437e842613aa20618b6dbbec966e9e54b464;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; }