next version of Jpred functionality using new client code.
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index c94a5a8..5c6bcf4 100755 (executable)
@@ -308,7 +308,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
     }\r
 \r
     int res = evt.getX() / av.getCharWidth() + av.getStartRes();\r
-    if(row>-1 && aa[row].annotations[res]!=null)\r
+    if(row>-1 && res<aa[row].annotations.length && aa[row].annotations[res]!=null)\r
       this.setToolTipText(aa[row].annotations[res].description);\r
 \r
   }\r