Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java
index fab4cf06c..81e2ef7fe 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java
@@ -37,7 +37,8 @@ public class SearchResultViewEntryAdapterFactory implements IAdapterFactory {
* have been attached to a project because there is no
* corresponding resource in the workspace.
*/
- if (resource.getType() != IResource.PROJECT)
+ int type= resource.getType();
+ if (type != IResource.PROJECT && type != IResource.ROOT)
return resource;
}
return null;

Back to the top