mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] corrupted paths tolerance in VFS (EA-89728)
This commit is contained in:
+15
-12
@@ -860,19 +860,22 @@ public class PersistentFSImpl extends PersistentFS implements ApplicationCompone
|
||||
canonicalBasePath = basePath;
|
||||
}
|
||||
|
||||
FileAttributes attributes = fs.getAttributes(new StubVirtualFile() {
|
||||
@NotNull
|
||||
@Override
|
||||
public String getPath() {
|
||||
return canonicalBasePath;
|
||||
}
|
||||
FileAttributes attributes;
|
||||
try {
|
||||
attributes = fs.getAttributes(new StubVirtualFile() {
|
||||
@NotNull
|
||||
@Override
|
||||
public String getPath() { return canonicalBasePath; }
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public VirtualFile getParent() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
@Nullable
|
||||
@Override
|
||||
public VirtualFile getParent() { return null; }
|
||||
});
|
||||
}
|
||||
catch (RuntimeException | AssertionError e) {
|
||||
LOG.error(e);
|
||||
return null;
|
||||
}
|
||||
if (attributes == null || !attributes.isDirectory()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user