Make sure shell is not disposed in closeSecondaryShells
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui.swtbot.tests / shared / org / eclipse / tracecompass / tmf / ui / swtbot / tests / shared / SWTBotUtils.java
index b402c6b04e2b57d1c3c0ab85ce579b75f94297de..e337fe93d18aff0810e5edf077723b6a3097d1e4 100644 (file)
@@ -284,6 +284,7 @@ public final class SWTBotUtils {
         // shell such the special "limbo shell" that Eclipse needs to work
         Arrays.stream(shells)
                 .filter(shell -> shell != mainShell)
+                .filter(s -> !s.widget.isDisposed())
                 .filter(SWTBotShell::isVisible)
                 .peek(shell -> log.debug(MessageFormat.format("Closing lingering shell with title {0}", shell.getText())))
                 .forEach(SWTBotShell::close);
This page took 0.025793 seconds and 5 git commands to generate.