JAL-885 - catch race condition when rna structure width is different to alignment...
[jalview.git] / src / jalview / renderer / AnnotationRenderer.java
index e8b2e72..0d7d4ca 100644 (file)
@@ -163,7 +163,8 @@ public class AnnotationRenderer
     {
       if (aa.autoCalculated && aa.label.startsWith("StrucConsensus"))
       {
-        if (aa.groupRef != null && aa.groupRef.consensusData != null
+        // TODO implement group structure consensus
+        /* if (aa.groupRef != null && aa.groupRef.consensusData != null
                 && aa.groupRef.isShowSequenceLogo())
         {
           //TODO check what happens for group selections
@@ -171,11 +172,12 @@ public class AnnotationRenderer
                   aa.groupRef.consensusData[column], aa.groupRef
                           .getIgnoreGapsConsensus());
         }
+        */
         // TODO extend annotation row to enable dynamic and static profile data
         // to
         // be stored
         if (aa.groupRef == null && aa.sequenceRef == null
-                && av_renderProfile)
+                && av_renderProfile && hStrucConsensus!=null && hStrucConsensus.length>column)
         {
           return StructureFrequency.extractProfile(hStrucConsensus[column],
                   av_ignoreGapsConsensus);