}\r
}\r
\r
+ if(row==-1)\r
+ return;\r
+\r
int res = (evt.getX() / av.getCharWidth()) + av.getStartRes();\r
\r
if(av.hasHiddenColumns)\r
res = av.getColumnSelection().adjustForHiddenColumns(res);\r
\r
- if (row > -1 && res<aa[row].annotations.length)\r
+ if ( aa[row].annotations!=null\r
+ && row > -1\r
+ && res < (int) aa[row].annotations.length)\r
{\r
if(aa[row].graphGroup>-1)\r
{\r