Can't get file when event is invalid (EA-77748)

This commit is contained in:
Nikolay Krasko
2016-01-28 19:34:20 +03:00
parent 7c84225cc4
commit 63a50ca3a9
@@ -66,10 +66,12 @@ class LibraryModificationTracker(project: Project) : SimpleModificationTracker()
private inline fun processBulk(events: List<VFileEvent>, check: (VirtualFile) -> Boolean) {
events.forEach { event ->
val file = event.file
if (file != null && check(file)) {
incModificationCount()
return
if (event.isValid) {
val file = event.file
if (file != null && check(file)) {
incModificationCount()
return
}
}
}
}