From a9fe6d3d927d312c528af357e782a8140869e203 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sat, 18 Jul 2015 22:41:53 +0200 Subject: [PATCH] goto usage fix --- .../jpexs/decompiler/flash/gui/abc/DecompiledEditorPane.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } }