mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-50206 - assert: FileManagerImpl.findFile
This commit is contained in:
@@ -232,6 +232,7 @@ public class MavenDomUtil {
|
||||
public static <T extends MavenDomElement> T getMavenDomModel(@NotNull Project project,
|
||||
@NotNull VirtualFile file,
|
||||
@NotNull Class<T> clazz) {
|
||||
if (!file.isValid()) return null;
|
||||
PsiFile psiFile = PsiManager.getInstance(project).findFile(file);
|
||||
if (psiFile == null) return null;
|
||||
return getMavenDomModel(psiFile, clazz);
|
||||
|
||||
Reference in New Issue
Block a user