mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
External system: EA-48201 - assert: ComponentManagerImpl.getPicoContainer
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ public class ExternalSystemTaskId implements Serializable {
|
||||
|
||||
@NotNull
|
||||
public static String getProjectId(@NotNull Project project) {
|
||||
return project.getName() + ":" + project.getLocationHash();
|
||||
return project.isDisposed() ? project.getName() : project.getName() + ":" + project.getLocationHash();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
+2
@@ -138,6 +138,8 @@ public class ExternalSystemRunConfiguration extends LocatableConfigurationBase {
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
if(myProject.isDisposed()) return null;
|
||||
|
||||
ExternalSystemUtil.updateRecentTasks(new ExternalTaskExecutionInfo(mySettings.clone(), executor.getId()), myProject);
|
||||
ConsoleView console = new TextConsoleBuilderImpl(myProject).getConsole();
|
||||
final List<ExternalTaskPojo> tasks = ContainerUtilRt.newArrayList();
|
||||
|
||||
+1
-1
@@ -295,7 +295,7 @@ public class ExternalSystemAutoImporter implements BulkFileListener, DocumentLis
|
||||
}
|
||||
|
||||
private void refreshFilesIfNecessary() {
|
||||
if (myFilesToRefresh.isEmpty()) {
|
||||
if (myFilesToRefresh.isEmpty() || myProject.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -156,6 +156,7 @@ public abstract class AbstractExternalProjectImportBuilder<C extends AbstractImp
|
||||
new Task.Backgroundable(project, progressText, false) {
|
||||
@Override
|
||||
public void run(@NotNull final ProgressIndicator indicator) {
|
||||
if(project.isDisposed()) return;
|
||||
ExternalSystemResolveProjectTask task
|
||||
= new ExternalSystemResolveProjectTask(myExternalSystemId, project, projectSettings.getExternalProjectPath(), false);
|
||||
task.execute(indicator, ExternalSystemTaskNotificationListener.EP_NAME.getExtensions());
|
||||
|
||||
+2
@@ -437,6 +437,8 @@ public class ExternalSystemUtil {
|
||||
@SuppressWarnings({"ThrowableResultOfMethodCallIgnored", "IOResourceOpenedButNotSafelyClosed"})
|
||||
@Override
|
||||
public void execute(@NotNull ProgressIndicator indicator) {
|
||||
if(project.isDisposed()) return;
|
||||
|
||||
ExternalSystemResolveProjectTask task
|
||||
= new ExternalSystemResolveProjectTask(externalSystemId, project, externalProjectPath, isPreviewMode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user