mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics for EA-26367 - assert: EPathUtil.collapse2EclipsePath
This commit is contained in:
@@ -214,10 +214,11 @@ public class EPathUtil {
|
||||
final VirtualFile contentRoot = getContentRoot(model);
|
||||
VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url);
|
||||
if (file != null) {
|
||||
LOG.assertTrue(file.isValid());
|
||||
if (file.getFileSystem() instanceof JarFileSystem) {
|
||||
file = JarFileSystem.getInstance().getVirtualFileForJar(file);
|
||||
}
|
||||
LOG.assertTrue(file != null);
|
||||
LOG.assertTrue(file != null, url);
|
||||
if (contentRoot != null && VfsUtil.isAncestor(contentRoot, file, false)) { //inside current project
|
||||
return VfsUtil.getRelativePath(file, contentRoot, '/');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user