mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
diagnostics for IDEA-94551 assertion JavaPsiImplementationHelperImpl.java:142 running tests
This commit is contained in:
@@ -139,7 +139,9 @@ public class JavaPsiImplementationHelperImpl extends JavaPsiImplementationHelper
|
||||
final VirtualFile folder = virtualFile.getParent();
|
||||
if (sourceRoot != null && folder != null) {
|
||||
String relativePath = VfsUtilCore.getRelativePath(folder, sourceRoot, '/');
|
||||
LOG.assertTrue(relativePath != null);
|
||||
if (relativePath == null) {
|
||||
throw new AssertionError("Null relative path: folder=" + folder + "; root=" + sourceRoot);
|
||||
}
|
||||
List<OrderEntry> orderEntries = index.getOrderEntriesForFile(virtualFile);
|
||||
if (orderEntries.isEmpty()) {
|
||||
LOG.error("Inconsistent: " + DirectoryIndex.getInstance(myProject).getInfoForDirectory(folder).toString());
|
||||
|
||||
Reference in New Issue
Block a user