Fix of EA-103829 (do not try to get module info for disposed module)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e315249624
commit
5b72159967
@@ -88,6 +88,8 @@ private fun getModuleInfoByVirtualFile(project: Project, virtualFile: VirtualFil
|
||||
|
||||
val module = projectFileIndex.getModuleForFile(virtualFile)
|
||||
if (module != null) {
|
||||
if (module.isDisposed) return null
|
||||
|
||||
fun warnIfDecompiled() {
|
||||
if (treatAsLibrarySource) {
|
||||
LOG.warn("Decompiled file for ${virtualFile.canonicalPath} is in content of $module")
|
||||
|
||||
Reference in New Issue
Block a user