fix null pointer exception in redraw for short sequence associated annotation rows
[jalview.git] / src / jalview / appletgui / AnnotationPanel.java
index 6d4d600..b563386 100755 (executable)
@@ -720,7 +720,7 @@ public class AnnotationPanel extends Panel implements AdjustmentListener,
                 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