Compilation fixes for 172 branch

This commit is contained in:
Dmitry Jemerov
2017-05-03 09:52:32 +02:00
committed by Nikolay Krasko
parent c1cfd70ae7
commit 48d4f5f5c2
2 changed files with 24 additions and 1 deletions
@@ -146,7 +146,7 @@ private fun readClassFileImpl(project: Project,
fun readFromOutput(isForTestClasses: Boolean): ByteArray? {
if (!ProjectRootsUtil.isProjectSourceFile(project, file)) return null
val module = ProjectFileIndex.SERVICE.getInstance(project).getModuleForFile(file)
val module = ProjectFileIndex.SERVICE.getInstance(project).getModuleForFile(file) ?: return null
val outputDir = CompilerPaths.getModuleOutputDirectory(module, /*forTests = */ isForTestClasses) ?: return null
val className = fqNameWithInners.asString().replace('.', '$')