Make tabbed area more robust.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / widgets / TabbedArea.java
index 12ef97557bb79e8a886a054f136eee8894466953..8a021f1de9ca3586cbcc7760298f417701366ad8 100644 (file)
@@ -115,6 +115,8 @@ public class TabbedArea extends Composite {
        }
 
        public void view(CmsUiProvider uiProvider, Node context) {
+               if (body.isDisposed())
+                       return;
                int index = tabIndex(context);
                if (index >= 0) {
                        showTab(index);