mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tolerate IDE being activated with no args (not sure why) (EA-44872)
This commit is contained in:
+3
-1
@@ -251,7 +251,9 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
final Project project = CommandLineProcessor.processExternalCommandLine(args.subList(1, args.size()), args.get(0));
|
||||
String currentDirectory = args.isEmpty() ? null : args.get(0);
|
||||
List<String> realArgs = args.size() <= 1 ? args : args.subList(1, args.size());
|
||||
final Project project = CommandLineProcessor.processExternalCommandLine(realArgs, currentDirectory);
|
||||
final JFrame frame;
|
||||
if (project != null) {
|
||||
frame = (JFrame)WindowManager.getInstance().getIdeFrame(project);
|
||||
|
||||
Reference in New Issue
Block a user