}\r
}\r
\r
- if (av.validCharWidth && validRes &&\r
- (row.annotations[column].displayCharacter.length() > 0))\r
+ if (av.validCharWidth && validRes\r
+ && row.annotations[column].displayCharacter != null\r
+ && (row.annotations[column].displayCharacter.length() > 0))\r
{\r
\r
int charOffset = (av.charWidth -\r
fm.charWidth(row.annotations[column].\r
displayCharacter.charAt(\r
0))) / 2;\r
- g.setColor(row.annotations[column].colour);\r
+\r
+ if (row.annotations[column].colour == null)\r
+ g.setColor(Color.black);\r
+ else\r
+ g.setColor(row.annotations[column].colour);\r
\r
if (column == 0 || row.graph > 0)\r
{\r
continue;\r
}\r
\r
- g.setColor(aa.annotations[column].colour);\r
+ if (aa.annotations[column].colour == null)\r
+ g.setColor(Color.black);\r
+ else\r
+ g.setColor(aa.annotations[column].colour);\r
+\r
y1 = y -\r
(int) ( ( (aa.annotations[column - 1].value - min) / range) * graphHeight);\r
y2 = y -\r
continue;\r
}\r
\r
- g.setColor(aa.annotations[column].colour);\r
+ if (aa.annotations[column].colour == null)\r
+ g.setColor(Color.black);\r
+ else\r
+ g.setColor(aa.annotations[column].colour);\r
+\r
y1 = y -\r
(int) ( ( (aa.annotations[column].value - min) / (range)) * aa.graphHeight);\r
\r
{\r
if (aa.annotations[j] != null)\r
{\r
- g.setColor(aa.annotations[j].colour);\r
+ if (aa.annotations[j].colour == null)\r
+ g.setColor(Color.black);\r
+ else\r
+ g.setColor(aa.annotations[j].colour);\r
\r
height = (int) ( (aa.annotations[j].value / aa.graphMax) * y);\r
if (height > y)\r