Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2006-06-03 14:40:14 +0000
committerDoug Schaefer2006-06-03 14:40:14 +0000
commitddb0bf189818fa8f2fb79df807a419b6dd5ef033 (patch)
tree0c303f4b6f57983a6def8a10926ed55c2b2d1cf2
parent7ca72c49aaaff1fa2c3ab6a8d8ed424ffd734242 (diff)
downloadorg.eclipse.cdt-ddb0bf189818fa8f2fb79df807a419b6dd5ef033.tar.gz
org.eclipse.cdt-ddb0bf189818fa8f2fb79df807a419b6dd5ef033.tar.xz
org.eclipse.cdt-ddb0bf189818fa8f2fb79df807a419b6dd5ef033.zip
Fix NPE found while investigating 145105.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchTextSelectionQuery.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchTextSelectionQuery.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchTextSelectionQuery.java
index eec83f2b2c..495851d618 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchTextSelectionQuery.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchTextSelectionQuery.java
@@ -48,7 +48,8 @@ public class PDOMSearchTextSelectionQuery extends PDOMSearchQuery {
for (int i = 0; i < names.length; ++i) {
IBinding binding = names[i].resolveBinding();
- createMatches(language, binding);
+ if (binding != null)
+ createMatches(language, binding);
}
return Status.OK_STATUS;
} catch (CoreException e) {

Back to the top