- if( j+1>annotation.annotations.length || annotation.annotations[j]==null)\r
- currentColour = Color.white;\r
- else\r
+ if( j<annotation.annotations.length\r
+ && annotation.annotations[j]!=null\r
+ && !jalview.util.Comparison.isGap(n.charAt(0)))\r