diff --git a/src/com/jpexs/decompiler/flash/gui/abc/DecompiledEditorPane.java b/src/com/jpexs/decompiler/flash/gui/abc/DecompiledEditorPane.java index 54f465f87..d7054e3ae 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/DecompiledEditorPane.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/DecompiledEditorPane.java @@ -98,7 +98,8 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL } public void fireScript() { - for (Runnable scriptListener : scriptListeners) { + Runnable[] listeners = scriptListeners.toArray(new Runnable[scriptListeners.size()]); + for (Runnable scriptListener : listeners) { scriptListener.run(); } }