Can't get file when event is invalid (EA-77748)
This commit is contained in:
+6
-4
@@ -66,10 +66,12 @@ class LibraryModificationTracker(project: Project) : SimpleModificationTracker()
|
|||||||
|
|
||||||
private inline fun processBulk(events: List<VFileEvent>, check: (VirtualFile) -> Boolean) {
|
private inline fun processBulk(events: List<VFileEvent>, check: (VirtualFile) -> Boolean) {
|
||||||
events.forEach { event ->
|
events.forEach { event ->
|
||||||
val file = event.file
|
if (event.isValid) {
|
||||||
if (file != null && check(file)) {
|
val file = event.file
|
||||||
incModificationCount()
|
if (file != null && check(file)) {
|
||||||
return
|
incModificationCount()
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user