fixed case of missing containing directory(wha?): EA-104265 - IVFAE: PersistentFSImpl.getFileId

This commit is contained in:
Alexey Kudravtsev
2017-07-12 14:45:13 +03:00
parent 7c3c9b0a8e
commit 263cef5134
@@ -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;
}