mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
GitOrigin-RevId: fc1b052019b7639d06ee15650335b16e617e01fb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6fc87b7a90
commit
7a424b239f
@@ -38,7 +38,7 @@ public class UriUtil {
|
||||
public static VirtualFile findRelative(String uri, @NotNull PsiFileSystemItem base) {
|
||||
String location = ExternalResourceManager.getInstance().getResourceLocation(uri, base.getProject());
|
||||
VirtualFile file = base.getVirtualFile();
|
||||
return VfsUtilCore.findRelativeFile(location, file.isValid() ? file : null);
|
||||
return VfsUtilCore.findRelativeFile(location, file != null && file.isValid() ? file : null);
|
||||
}
|
||||
|
||||
// cannot use UriUtil.SLASH_MATCHER.trimFrom - we don't depend on guava
|
||||
|
||||
Reference in New Issue
Block a user