Exception when executing task

Discussion in 'Plugin Development' started by FrogTerra, Apr 15, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    FrogTerra

  2. Offline

    MightyOne

    You cant remove values from an ArrayList while you iterate it with a foreach scope. Try something like
    Code:
    for (int i  = list.size() - 1; i >= 0; i--) {
    If you now try to remove elements from your list you wont get any problems
     
  3. Offline

    JanTuck

Thread Status:
Not open for further replies.

Share This Page