Skip to content

Commit

Permalink
fixed: macOS: App.getApps(): ArrayIndexOutOfBoundsException #310
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiMan committed Feb 20, 2020
1 parent 9cfb97e commit d5e5589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/src/main/java/org/sikuli/natives/MacUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public List<App> getApps(String name) {
"resultlist";
int retVal = Runner.getRunner(AppleScriptRunner.class).evalScript(cmd, SILENT_OPTIONS);
String result = RunTime.get().getLastCommandResult().trim();
String[] processes = result.split(", ###");
String[] processes = (", " + result).split(", ###");
List<App> appList = new ArrayList<>();
int pid = 0;
for (String process : processes) {
Expand Down

0 comments on commit d5e5589

Please sign in to comment.