mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-98262 - IAE: VfsUtilCore.getRelativePath
This commit is contained in:
@@ -66,7 +66,7 @@ public class TestLocationDataRule implements GetDataRule {
|
||||
if (fileIndex.isInContent(file) && !fileIndex.isInSource(file) && !fileIndex.isInLibraryClasses(file)) {
|
||||
final VirtualFile parent = file.getParent();
|
||||
final VirtualFile contentRoot = fileIndex.getContentRootForFile(file);
|
||||
if (contentRoot != null) {
|
||||
if (contentRoot != null && parent != null) {
|
||||
final String relativePath = VfsUtilCore.getRelativePath(parent, contentRoot, '/');
|
||||
if (relativePath != null) {
|
||||
final PsiSearchHelper searchHelper = PsiSearchHelper.SERVICE.getInstance(project);
|
||||
|
||||
Reference in New Issue
Block a user