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<*>,
|
platformKind: IdePlatformKind<*>,
|
||||||
rootModel: ModuleRootModel?
|
rootModel: ModuleRootModel?
|
||||||
): Collection<String> {
|
): Collection<String> {
|
||||||
|
if (module.isDisposed) {
|
||||||
|
return emptyList()
|
||||||
|
}
|
||||||
|
|
||||||
val versionProvider = platformKind.tooling.getLibraryVersionProvider(module.project)
|
val versionProvider = platformKind.tooling.getLibraryVersionProvider(module.project)
|
||||||
return (rootModel ?: ModuleRootManager.getInstance(module))
|
return (rootModel ?: ModuleRootManager.getInstance(module))
|
||||||
.orderEntries
|
.orderEntries
|
||||||
|
|||||||
Reference in New Issue
Block a user