From: James Procter Date: Mon, 23 Oct 2023 08:25:34 +0000 (+0100) Subject: JAL-4090 defensive check for featureSettings redraws when feature filter attrbute... X-Git-Tag: Release_2_11_4_0~127^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a04a7992b1055fa52f5031ef9d10d2228ee78899;p=jalview.git JAL-4090 defensive check for featureSettings redraws when feature filter attrbute is null (noticed whilst testing) --- diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 184fdc5..4d31805 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -1787,11 +1787,15 @@ public class FeatureSettings extends JPanel { FeatureMatcherSetI theFilter = (FeatureMatcherSetI) filter; setOpaque(true); - String asText = theFilter.toString(); setBackground(tbl.getBackground()); - this.setText(asText); this.setIcon(null); + if (theFilter != null) + { + String asText = theFilter.toString(); + this.setText(asText); + } + if (isSelected) { if (selectedBorder == null)