EA-50206 - assert: FileManagerImpl.findFile

This commit is contained in:
Sergey Evdokimov
2013-09-23 20:41:14 +04:00
parent 4b9422b135
commit 32e30d1a16
@@ -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);