mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-119463 NPE at org.jetbrains.idea.maven.wizards.MavenModuleBuilder.findPotentialParentProject
This commit is contained in:
+4
-1
@@ -132,7 +132,10 @@ public class MavenModuleBuilder extends ModuleBuilder implements SourcePathsBuil
|
||||
public MavenProject findPotentialParentProject(Project project) {
|
||||
if (!MavenProjectsManager.getInstance(project).isMavenizedProject()) return null;
|
||||
|
||||
File parentDir = new File(getContentEntryPath()).getParentFile();
|
||||
String contentEntryPath = getContentEntryPath();
|
||||
if (contentEntryPath == null) return null;
|
||||
|
||||
File parentDir = new File(contentEntryPath).getParentFile();
|
||||
if (parentDir == null) return null;
|
||||
VirtualFile parentPom = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(parentDir, "pom.xml"));
|
||||
if (parentPom == null) return null;
|
||||
|
||||
Reference in New Issue
Block a user