Don't try to resolve a class with no containing file (such as LightBRClass) to descriptor (EA-91890 - (AS only, no containing file, from Java light classes) LET: GetModuleInfoKt$getModuleInfo$.invoke)
This commit is contained in:
@@ -225,7 +225,7 @@ class KotlinIndicesHelper(
|
||||
|
||||
fun getJvmClassesByName(name: String): Collection<ClassDescriptor> {
|
||||
return PsiShortNamesCache.getInstance(project).getClassesByName(name, scope)
|
||||
.filter { it in scope }
|
||||
.filter { it in scope && it.containingFile != null }
|
||||
.mapNotNull { it.resolveToDescriptor(resolutionFacade) }
|
||||
.filter(descriptorFilter)
|
||||
.toSet()
|
||||
|
||||
Reference in New Issue
Block a user