Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-07-18 21:59:27 +0000
committersminto2005-07-18 21:59:27 +0000
commit5d37f1a4a10d3494918d8a8ef8dc854e75d4b02f (patch)
treed3b920e07bc83543c076bd0f039a1ace15e8762f /org.eclipse.mylyn.tasks.core/src
parentb31b5e056076a32b4a30cdc4e5679883927dfe6c (diff)
downloadorg.eclipse.mylyn.tasks-5d37f1a4a10d3494918d8a8ef8dc854e75d4b02f.tar.gz
org.eclipse.mylyn.tasks-5d37f1a4a10d3494918d8a8ef8dc854e75d4b02f.tar.xz
org.eclipse.mylyn.tasks-5d37f1a4a10d3494918d8a8ef8dc854e75d4b02f.zip
fixed Bug #102681: ensure that non-existing elements can not be searched
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/search/BugzillaReferencesProvider.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/search/BugzillaReferencesProvider.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/search/BugzillaReferencesProvider.java
index f8a920df4..6c1ab92c8 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/search/BugzillaReferencesProvider.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/search/BugzillaReferencesProvider.java
@@ -47,7 +47,7 @@ public class BugzillaReferencesProvider extends AbstractRelationshipProvider {
protected boolean acceptElement(IJavaElement javaElement) {
return javaElement != null
- && (javaElement instanceof IMember || javaElement instanceof IType);
+ && (javaElement instanceof IMember || javaElement instanceof IType) && javaElement.exists();
}
/**
@@ -61,8 +61,6 @@ public class BugzillaReferencesProvider extends AbstractRelationshipProvider {
return;
}
runJob(node, degreeOfSeparation);
-
- //XXX what if degreeOfSeparation is 5?
}
@Override

Back to the top