fixed for display of 'null' group features
[jalview.git] / src / jalview / gui / FeatureSettings.java
index 7e817af..4c0450c 100755 (executable)
@@ -132,7 +132,7 @@ public class FeatureSettings
       {
         if (!fs.resettingTable && !fs.handlingUpdate) {
           fs.handlingUpdate=true;
-          fs.resetTable(null); // groups may be added with new seuqence feature types only
+          fs.resetTable(null); // new groups may be added with new seuqence feature types only
           fs.handlingUpdate=false;
         }
       }
@@ -198,9 +198,9 @@ public class FeatureSettings
           if (!allGroups.contains(group))
           {
             allGroups.addElement(group);
-            if (checkGroupState(group))
+            if (group!=null)
             {
-              // continue; // skip this group's feature - we've done it already ? 
+              checkGroupState(group);
             }
           }
         }
@@ -314,7 +314,8 @@ public class FeatureSettings
         if (group == null || fr.featureGroups.get(group) == null ||
             ( (Boolean) fr.featureGroups.get(group)).booleanValue())
         {
-          checkGroupState(group);
+          if (group!=null)
+            checkGroupState(group);
           type = tmpfeatures[index].getType();
           if (!visibleChecks.contains(type))
           {