Skip to content

Commit aa14fb1

Browse files
committed
add synchronization to the error list (see processing#3651)
1 parent 3a13c6d commit aa14fb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/src/processing/mode/java/ErrorColumn.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.awt.event.MouseEvent;
3131
import java.awt.event.MouseMotionAdapter;
3232
import java.util.ArrayList;
33+
import java.util.Collections;
3334
import java.util.List;
3435

3536
import javax.swing.JPanel;
@@ -98,7 +99,8 @@ public class ErrorColumn extends JPanel {
9899
/**
99100
* Stores error markers displayed PER TAB along the error bar.
100101
*/
101-
protected List<ErrorMarker> errorPoints = new ArrayList<ErrorMarker>();
102+
protected List<ErrorMarker> errorPoints =
103+
Collections.synchronizedList(new ArrayList<ErrorMarker>());
102104

103105
/**
104106
* Stores previous list of error markers.

0 commit comments

Comments
 (0)