Skip to content

Commit 83c128c

Browse files
EcljpseB0Tjukzi
authored andcommitted
[test] SmartImportTests fix NPE after SWTError: No more handles
1 parent 138233b commit 83c128c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private void proceedSmartImportWizard(SmartImportWizard wizard, Consumer<SmartIm
157157
processEventsUntil(() -> okButton.isEnabled(), -1);
158158
finishWizard(wizard);
159159
} finally {
160-
if (!dialog.getShell().isDisposed()) {
160+
if (dialog.getShell() != null && !dialog.getShell().isDisposed()) {
161161
dialog.close();
162162
}
163163
}

0 commit comments

Comments
 (0)