mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
properly synchronize myData
This commit is contained in:
+5
-1
@@ -428,7 +428,11 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
|
||||
}
|
||||
|
||||
public VirtualFileSystemEntry findChildById(int id, boolean cachedOnly) {
|
||||
if (ArrayUtil.indexOf(myData.myChildrenIds, id) >= 0) {
|
||||
int i;
|
||||
synchronized (myData) {
|
||||
i = ArrayUtil.indexOf(myData.myChildrenIds, id);
|
||||
}
|
||||
if (i >= 0) {
|
||||
return VfsData.getFileById(id, this);
|
||||
}
|
||||
if (cachedOnly) return null;
|
||||
|
||||
Reference in New Issue
Block a user