fix null pointer exception in redraw for short sequence associated annotation rows
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index d705367..c3984f2 100755 (executable)
@@ -959,7 +959,7 @@ public class AnnotationPanel extends JPanel implements MouseListener,
                 x1 += av.charWidth / 2;
               }
 
-              if (row.annotations[column] == null
+              if (!validRes || row.annotations[column] == null
                       || row.annotations[column].secondaryStructure != 'H')
               {
                 g.fillArc((x * av.charWidth) - av.charWidth, y + 4