Add warning when non-empty scope without project is used for IDEVirtualFileFinder

This commit is contained in:
Nikolay Krasko
2014-12-22 16:35:59 +03:00
parent 5041f00fea
commit 63e957559e
@@ -42,6 +42,10 @@ public final class IDEVirtualFileFinder extends VirtualFileKotlinClassFinder imp
public IDEVirtualFileFinder(@NotNull Project project, @NotNull GlobalSearchScope scope) {
this.project = project;
this.scope = scope;
if (scope != GlobalSearchScope.EMPTY_SCOPE && scope.getProject() == null) {
LOG.warn("Scope with null project " + scope);
}
}
@Nullable