avoid calling disposed composite
authorKatja Luther <k.luther@bgbm.org>
Fri, 1 Apr 2022 08:20:53 +0000 (10:20 +0200)
committerKatja Luther <k.luther@bgbm.org>
Fri, 1 Apr 2022 08:20:53 +0000 (10:20 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java

index 063be173af82e4a66547a7142de981811191fecd..10584bab3a597aebe15b48911c24eb0d53275661 100644 (file)
@@ -192,7 +192,9 @@ public abstract class AbstractFormSection<ENTITY>
                for (ICdmFormElement element : getElements()) {
                        element.setBackground(color);
                }
-               getLayoutComposite().setBackground(color);
+               if (!getLayoutComposite().isDisposed()){
+                       getLayoutComposite().setBackground(color);
+               }
                super.setBackground(color);
        }