featureGroups not null
authoramwaterhouse <Andrew Waterhouse>
Wed, 18 Apr 2007 13:29:46 +0000 (13:29 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 18 Apr 2007 13:29:46 +0000 (13:29 +0000)
src/jalview/gui/FeatureRenderer.java

index 178dc38..4c4be5c 100755 (executable)
@@ -49,7 +49,7 @@ public class FeatureRenderer
 
   // A higher level for grouping features of a
   // particular type
-  Hashtable featureGroups = null;
+  Hashtable featureGroups = new Hashtable();
 
   // This is actually an Integer held in the hashtable,
   // Retrieved using the key feature type
@@ -455,6 +455,7 @@ public class FeatureRenderer
       {
         if (!av.featuresDisplayed.containsKey(features[index].getType()))
         {
+
           if(featureGroups.containsKey(features[index].getType()))
           {
             boolean visible = ( (Boolean) featureGroups.get(