Skip to content

Commit

Permalink
#480 ConcurrentModificationException in IgnoreSettings.notifyOnChange
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Nov 17, 2017
1 parent 00c8343 commit bf99247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mobi/hsz/idea/gitignore/settings/IgnoreSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.util.containers.ConcurrentList;
import com.intellij.util.containers.ContainerUtil;
import mobi.hsz.idea.gitignore.IgnoreBundle;
import mobi.hsz.idea.gitignore.lang.IgnoreLanguage;
Expand Down Expand Up @@ -137,7 +138,7 @@ public String toString() {
private final List<UserTemplate> userTemplates = ContainerUtil.newArrayList(DEFAULT_TEMPLATE);

/** Listeners list. */
private final List<Listener> listeners = ContainerUtil.newArrayList();
private final ConcurrentList<Listener> listeners = ContainerUtil.createConcurrentList();

/**
* Get the instance of this service.
Expand Down

0 comments on commit bf99247

Please sign in to comment.