From 666bad57f2110b0f33ea50b123099d5faf32a413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Mon, 28 Oct 2024 14:50:29 +0100 Subject: [PATCH] [test] SmartImportTests fix NPE after SWTError: No more handles --- .../org/eclipse/ui/tests/datatransfer/SmartImportTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java index de57704c53c..16020d7af58 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java @@ -157,7 +157,7 @@ private void proceedSmartImportWizard(SmartImportWizard wizard, Consumer okButton.isEnabled(), -1); finishWizard(wizard); } finally { - if (!dialog.getShell().isDisposed()) { + if (dialog.getShell() != null && !dialog.getShell().isDisposed()) { dialog.close(); } }