Browse Source

Do detach() before clearing application (#9419)

tags/7.0.0.beta1
Leif Åstrand 11 years ago
parent
commit
e810fed27a
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      server/src/com/vaadin/ui/UI.java

+ 3
- 2
server/src/com/vaadin/ui/UI.java View File

@@ -691,13 +691,14 @@ public abstract class UI extends AbstractComponentContainer implements
if ((application == null) == (this.application == null)) {
throw new IllegalStateException("Application has already been set");
} else {
if (application == null) {
detach();
}
this.application = application;
}

if (application != null) {
attach();
} else {
detach();
}
}


Loading…
Cancel
Save