JAL-885 - catch race condition when rna structure width is different to alignment...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 28 Oct 2011 16:23:22 +0000 (17:23 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 28 Oct 2011 16:23:22 +0000 (17:23 +0100)
src/jalview/renderer/AnnotationRenderer.java

index 47e2cb7..0d7d4ca 100644 (file)
@@ -177,7 +177,7 @@ public class AnnotationRenderer
         // 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);