From c1b4720c07631ff280cdc7b3396a4a4e251c03e6 Mon Sep 17 00:00:00 2001 From: hansonr Date: Tue, 27 Aug 2019 23:48:24 -0500 Subject: [PATCH] JAL-3253-applet JAL-3423 Windows TestNG Bob Bug found in boolean testing of FeatureRendererModel --- src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } /** -- 1.7.10.2