X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tmf%2Forg.eclipse.tracecompass.tmf.ui.swtbot.tests%2Fshared%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fui%2Fswtbot%2Ftests%2Fshared%2FSWTBotUtils.java;h=e337fe93d18aff0810e5edf077723b6a3097d1e4;hb=d7ac629472e9ad6be2c5ecff41b0b74751cd2844;hp=b402c6b04e2b57d1c3c0ab85ce579b75f94297de;hpb=cdfe10e7096bf98050a9a32104e2756d4bfbe463;p=deliverable%2Ftracecompass.git diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java index b402c6b04e..e337fe93d1 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java @@ -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);