mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add check for project disposed
+review CR-IC-1564
This commit is contained in:
+2
@@ -73,6 +73,8 @@ public class MavenShowEffectivePom extends AnAction implements DumbAware {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (project.isDisposed()) return;
|
||||
|
||||
String fileName = mavenProject.getMavenId().getArtifactId() + "-effective-pom.xml";
|
||||
PsiFile file = PsiFileFactory.getInstance(project).createFileFromText(fileName, XMLLanguage.INSTANCE, s);
|
||||
file.navigate(true);
|
||||
|
||||
Reference in New Issue
Block a user