mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-173710 assertion that project is initialized before using PsiManager in MavenUtil
This commit is contained in:
@@ -975,7 +975,7 @@ public class MavenUtil {
|
||||
if (isPomFileName(file.getName())) return true;
|
||||
if (!isPotentialPomFile(file.getPath())) return false;
|
||||
|
||||
if (project == null) return false;
|
||||
if (project == null || !project.isInitialized()) return false;
|
||||
|
||||
MavenProjectsManager mavenProjectsManager = MavenProjectsManager.getInstance(project);
|
||||
if (mavenProjectsManager.findProject(file) != null) return true;
|
||||
|
||||
Reference in New Issue
Block a user