mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Empty search for certain projects, bug 293161.
This commit is contained in:
parent
c6fa4817ff
commit
8217a6eb90
1 changed files with 3 additions and 2 deletions
|
@ -101,7 +101,7 @@ public abstract class PDOMSearchQuery implements ISearchQuery {
|
|||
|
||||
// Filter out closed projects for this case
|
||||
for (int i = 0; i < allProjects.length; i++) {
|
||||
if (!allProjects[i].isOpen()) {
|
||||
if (!allProjects[i].getProject().isOpen()) {
|
||||
allProjects[i] = null;
|
||||
}
|
||||
}
|
||||
|
@ -112,8 +112,9 @@ public abstract class PDOMSearchQuery implements ISearchQuery {
|
|||
|
||||
for (int i = 0; i < scope.length; ++i) {
|
||||
ICProject project = scope[i].getCProject();
|
||||
if (project != null)
|
||||
if (project != null && project.getProject().isOpen()) {
|
||||
projectMap.put(project.getElementName(), project);
|
||||
}
|
||||
}
|
||||
|
||||
projects = projectMap.values().toArray(new ICProject[projectMap.size()]);
|
||||
|
|
Loading…
Add table
Reference in a new issue