res = av.getColumnSelection().adjustForHiddenColumns(res);
}
- if (aa[row].annotations != null && row > -1
+ if (row > -1 && aa[row].annotations != null
&& res < (int) aa[row].annotations.length)
{
if (aa[row].graphGroup > -1)
}
}
else if (aa[row].annotations[res] != null
- && aa[row].annotations[res].description != null)
+ && aa[row].annotations[res].description != null && aa[row].annotations[res].description.length()>0)
{
this.setToolTipText(aa[row].annotations[res].description);
}
+ else
+ {
+ // clear the tooltip.
+ this.setToolTipText(null);
+ }
if (aa[row].annotations[res] != null)
{