Report 5308947: check module validity before asking for library versions

This commit is contained in:
Yan Zhulanow
2019-11-15 20:29:38 +09:00
parent cf620cc60d
commit bebc8974b2
@@ -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