There was an error while loading. Please reload this page.
1 parent 4cfa695 commit 49e3d7dCopy full SHA for 49e3d7d
1 file changed
bundles/org.vcml.explorer.ui/src/org/vcml/explorer/ui/dialogs/CommandDialog.java
@@ -83,8 +83,7 @@ private void execute() {
83
84
private void update() {
85
String[] args = commandBoxInput.getText().split(" ");
86
- String name = args[0];
87
- command = module.findCommand(name);
+ command = (args.length > 0) ? module.findCommand(args[0]) : null;
88
execBtn.setEnabled(false);
89
if (command == null) {
90
commandBoxLabel.setText("invalid command '" + commandBoxInput.getText() + "'");
0 commit comments