diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java index 5132ead15f5..6e9adc65191 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java @@ -21,6 +21,7 @@ import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; @@ -154,7 +155,7 @@ private void processElementAndChildren(Object element, ITreeContentProvider cont if (element instanceof IFolder) { IFolder folder = (IFolder) element; assertFalse(folder.getName().equalsIgnoreCase("res")); - } else { + } else if (element instanceof IResource) { // to expensive to walk other contributions like whole JRE from JDT Object[] children = contentProvider.getChildren(element); for (Object child : children) { processElementAndChildren(child, contentProvider);