diff --git a/java/src/processing/mode/java/ErrorColumn.java b/java/src/processing/mode/java/ErrorColumn.java index 490a9e7a4..44f1c34f6 100644 --- a/java/src/processing/mode/java/ErrorColumn.java +++ b/java/src/processing/mode/java/ErrorColumn.java @@ -30,6 +30,7 @@ import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import javax.swing.JPanel; @@ -98,7 +99,8 @@ public class ErrorColumn extends JPanel { /** * Stores error markers displayed PER TAB along the error bar. */ - protected List errorPoints = new ArrayList(); + protected List errorPoints = + Collections.synchronizedList(new ArrayList()); /** * Stores previous list of error markers.