Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,10 @@ public HashMap<IPath, LinkDescription> getLinks() {
* Returns the map of filter descriptions (IPath (project relative path) -&gt;
* {@literal LinkedList<FilterDescription>}). Since this method is only used
* internally, it never creates a copy. Returns null if the project does not
* have any filtered resources.
* have any filtered resources. Only the read of the reference is guarded,
* the returned map itself is not.
*/
public HashMap<IPath, LinkedList<FilterDescription>> getFilters() {
synchronized public HashMap<IPath, LinkedList<FilterDescription>> getFilters() {
return filterDescriptions;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,7 @@ public IFileInfo[] filterChildren(IFileInfo[] list, boolean throwException) thro
return list;
}
final ProjectDescription description = project.internalGetDescription();
if (description == null) {
if (description == null || description.getFilters() == null) {
return list;
}
return filterChildren(project, description, list, throwException);
Expand Down
Loading