From: hansonr Date: Wed, 28 Aug 2019 04:48:24 +0000 (-0500) Subject: JAL-3253-applet JAL-3423 Windows TestNG X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c1b4720c07631ff280cdc7b3396a4a4e251c03e6;p=jalview.git JAL-3253-applet JAL-3423 Windows TestNG Bob Bug found in boolean testing of FeatureRendererModel --- diff --git a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java index 8e40ef0..8219c6a 100644 --- a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java +++ b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java @@ -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(); } /**