{\r
row = annotations[i];\r
\r
- if (!row.visible)\r
+ if (!row.visible && !row.hasScore())\r
{\r
continue;\r
}\r
text.append(row.description + "\t");\r
}\r
\r
- for (int j = 0; j < row.annotations.length; j++)\r
+ for (int j = 0; row.annotations!=null && j < row.annotations.length; j++)\r
{\r
if (refSeq != null &&\r
jalview.util.Comparison.isGap(refSeq.getCharAt(j)))\r
\r
annotation = new AlignmentAnnotation(label,\r
description,\r
- annotations,\r
+ (index==0) ? null : annotations,\r
0,\r
0,\r
graphStyle);\r