Make logging less verbose and better check disposed status of widgets
[lgpl/argeo-commons.git] / swt / org.argeo.cms.swt / src / org / argeo / cms / swt / acr / SwtTabbedArea.java
index b65bc3b6a3a28171ff0719e69dd9c2739d1e4e0c..83cb4698402166eee52a3ffa6b1f1c79d2bb89d7 100644 (file)
@@ -231,7 +231,7 @@ public class SwtTabbedArea extends Composite {
 
        public Content getCurrentContext() {
                SwtSection section = getCurrentSection();
-               if (section != null) {
+               if (section != null && !section.isDisposed()) {
                        return section.getContent();
                } else {
                        return null;