JAL-4090 defensive check for featureSettings redraws when feature filter attrbute... improvement/JAL-4308_smalleridtooltip
authorJames Procter <j.procter@dundee.ac.uk>
Mon, 23 Oct 2023 08:25:34 +0000 (09:25 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Mon, 23 Oct 2023 08:25:52 +0000 (09:25 +0100)
src/jalview/gui/FeatureSettings.java

index 184fdc5..4d31805 100644 (file)
@@ -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)