Report 5308947: check module validity before asking for library versions
This commit is contained in:
+4
@@ -32,6 +32,10 @@ class KotlinVersionInfoProviderByModuleDependencies : KotlinVersionInfoProvider
|
||||
platformKind: IdePlatformKind<*>,
|
||||
rootModel: ModuleRootModel?
|
||||
): Collection<String> {
|
||||
if (module.isDisposed) {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
val versionProvider = platformKind.tooling.getLibraryVersionProvider(module.project)
|
||||
return (rootModel ?: ModuleRootManager.getInstance(module))
|
||||
.orderEntries
|
||||
|
||||
Reference in New Issue
Block a user