- Color color = annot.get("colour") == null ? Color.white
- : UserColourScheme.getColourFromString(annot.get(
- "colour").toString());
- annotations[count] = new Annotation(displayChar, desc, ss, val,
- color);
+
+ annotations[count] = new Annotation(displayChar, desc, ss, val);
+ if (annot.get("colour") != null)
+ {
+ Color color = UserColourScheme.getColourFromString(annot.get(
+ "colour").toString());
+ annotations[count].colour = color;
+ }