Skip to content

Commit 63e9575

Browse files
committed
Add warning when non-empty scope without project is used for IDEVirtualFileFinder
1 parent 5041f00 commit 63e9575

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

idea/idea-analysis/src/org/jetbrains/jet/plugin/vfilefinder/IDEVirtualFileFinder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public final class IDEVirtualFileFinder extends VirtualFileKotlinClassFinder imp
4242
public IDEVirtualFileFinder(@NotNull Project project, @NotNull GlobalSearchScope scope) {
4343
this.project = project;
4444
this.scope = scope;
45+
46+
if (scope != GlobalSearchScope.EMPTY_SCOPE && scope.getProject() == null) {
47+
LOG.warn("Scope with null project " + scope);
48+
}
4549
}
4650

4751
@Nullable

0 commit comments

Comments
 (0)