Fix stack overflow after logout.
[gpl/argeo-suite.git] / org.argeo.suite.ui / src / org / argeo / suite / ui / SuiteApp.java
index 4f5a3335cba62203a2291d35d8477e25c598c5f5..5f251d53bf74383400325ac6cf29b33d7c24d789 100644 (file)
@@ -226,9 +226,9 @@ public class SuiteApp extends AbstractCmsApp implements EventHandler {
 
        @Override
        public void setState(Composite parent, String state) {
-               if (state == null)
+               if (state == null || state.equals("~"))
                        return;
-               if (!state.startsWith("/")) {
+               if (!state.startsWith("/") && !state.equals("~")) {
                        if (parent instanceof SuiteUi) {
                                SuiteUi ui = (SuiteUi) parent;
                                String currentLayerId = ui.getCurrentLayerId();