Avoid exception when inspectClassesForKotlinIC produces empty file
Empty file should not happen, but we should process it correctly anyway.
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ open class ModulesApiHistoryJvm(protected val modulesInfo: IncrementalModuleInfo
|
|||||||
return Either.Error("Could not read class list for $jar from $classListFile: $t")
|
return Either.Error("Could not read class list for $jar from $classListFile: $t")
|
||||||
}
|
}
|
||||||
|
|
||||||
val classFileDirs = classFiles.groupBy { it.parentFile }
|
val classFileDirs = classFiles.filter { it.exists() && it.parentFile != null }.groupBy { it.parentFile }
|
||||||
val result = HashSet<File>()
|
val result = HashSet<File>()
|
||||||
for ((dir, files) in classFileDirs) {
|
for ((dir, files) in classFileDirs) {
|
||||||
val historyEither = getBuildHistoryForDir(dir)
|
val historyEither = getBuildHistoryForDir(dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user