mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prevent problems with new project due to broken plugins
This commit is contained in:
+5
-1
@@ -96,7 +96,11 @@ public class AbstractNewProjectStep extends DefaultActionGroup implements DumbAw
|
||||
public AnAction[] getActions(@NotNull DirectoryProjectGenerator[] generators, @NotNull NullableConsumer<ProjectSettingsStepBase> callback) {
|
||||
final List<AnAction> actions = ContainerUtil.newArrayList();
|
||||
for (DirectoryProjectGenerator projectGenerator : generators) {
|
||||
actions.addAll(ContainerUtil.list(getActions(projectGenerator, callback)));
|
||||
try {
|
||||
actions.addAll(ContainerUtil.list(getActions(projectGenerator, callback)));
|
||||
} catch (Throwable throwable) {
|
||||
LOG.error("Broken project generator " + projectGenerator, throwable);
|
||||
}
|
||||
}
|
||||
return actions.toArray(new AnAction[actions.size()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user