diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 7fea10019..94b82dea6 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -196,12 +196,16 @@ public class Base { if (platform.base == null) continue; if (key.equals(receivedKey)) { - String filename = br.readLine(); - if (filename != null) { - platform.base.handleOpen(filename); - } else { - platform.base.handleNew(); - } + final String filename = br.readLine(); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + if (filename != null) { + platform.base.handleOpen(filename); + } else { + platform.base.handleNew(); + } + }; + }); } } catch (IOException e) { }