}\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