From 10a861cadf3a1bc7e32b1858cf495a36a9c66c9d Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Mon, 14 Oct 2024 10:37:39 +0200 Subject: [PATCH] Don't fail on null shell supplier See https://github.com/eclipse-platform/eclipse.platform.swt/issues/1518 --- .../org.eclipse.test/src/org/eclipse/test/Screenshots.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclipse.platform.releng/bundles/org.eclipse.test/src/org/eclipse/test/Screenshots.java b/eclipse.platform.releng/bundles/org.eclipse.test/src/org/eclipse/test/Screenshots.java index 7ef7ea5d678..385c641748c 100644 --- a/eclipse.platform.releng/bundles/org.eclipse.test/src/org/eclipse/test/Screenshots.java +++ b/eclipse.platform.releng/bundles/org.eclipse.test/src/org/eclipse/test/Screenshots.java @@ -49,6 +49,9 @@ protected void finished(Description description) { } public void dispose() { + if (shell == null) { + return; + } Widget widget = shell.get(); if (widget != null && !widget.isDisposed()) { widget.dispose();