mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed case of missing containing directory(wha?): EA-104265 - IVFAE: PersistentFSImpl.getFileId
This commit is contained in:
+2
-1
@@ -837,7 +837,8 @@ public class PersistentFSImpl extends PersistentFS implements ApplicationCompone
|
||||
for (Map.Entry<VirtualDirectoryImpl, Collection<VFileDeleteEvent>> entry : deletions.entrySet()) {
|
||||
VirtualDirectoryImpl parent = entry.getKey();
|
||||
Collection<VFileDeleteEvent> deleteEvents = entry.getValue();
|
||||
if (parent == null) {
|
||||
// no valid containing directory, apply events the old way - one by one
|
||||
if (parent == null || !parent.isValid()) {
|
||||
deleteEvents.forEach(this::applyEvent);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user