- added dispose check because in some undefined circumstances the setBackground...
authorPatric Plitzner <p.plitzner@bgbm.org>
Tue, 10 Jun 2014 11:20:12 +0000 (11:20 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Tue, 10 Jun 2014 11:20:12 +0000 (11:20 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EntitySelectionElement.java

index 359fd901a3dd355596a787d0b9091990e6d7a6b8..388827b129cdb97faf0f0b80b2ad2c2d6be1b9f5 100644 (file)
@@ -447,7 +447,9 @@ public class EntitySelectionElement<T extends ICdmBase> extends
        /** {@inheritDoc} */
        @Override
        public void setBackground(Color color) {
-               label.setBackground(color);
+           if(!label.isDisposed()){
+               label.setBackground(color);
+           }
        }
 
        /** {@inheritDoc} */