We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a1852 commit cf0a7fcCopy full SHA for cf0a7fc
flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java
@@ -457,7 +457,12 @@ public void setSession(VaadinSession session) {
457
+ ".");
458
} else {
459
if (session == null) {
460
- ui.getElement().getNode().setParent(null);
+ try {
461
+ ui.getElement().getNode().setParent(null);
462
+ } catch (IllegalStateException e) {
463
+ getLogger().warn("Error detaching closed UI {} ",
464
+ ui.getUIId(), e);
465
+ }
466
// Disable push when the UI is detached. Otherwise the
467
// push connection and possibly VaadinSession will live on.
468
ui.getPushConfiguration().setPushMode(PushMode.DISABLED);
0 commit comments