JAL-3253-applet JAL-3423 Windows TestNG
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 28 Aug 2019 04:48:24 +0000 (23:48 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 28 Aug 2019 04:48:24 +0000 (23:48 -0500)
Bob Bug found in boolean testing of FeatureRendererModel

src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java

index 8e40ef0..8219c6a 100644 (file)
@@ -986,10 +986,12 @@ public abstract class FeatureRendererModel
    */
   protected boolean featureGroupNotShown(final SequenceFeature sequenceFeature)
   {
+    Boolean b;
     return featureGroups != null
             && sequenceFeature.featureGroup != null
-            && sequenceFeature.featureGroup.length() > 0 && !featureGroups
-                    .get(sequenceFeature.featureGroup).booleanValue();
+            && sequenceFeature.featureGroup.length() > 0
+            && (b = featureGroups.get(sequenceFeature.featureGroup)) != null
+            && !b.booleanValue();
   }
 
   /**