Trying to add objects using a Map object, I'm getting a concurrent modification exception on the 4th line of this function:
public void reloadResources() {
        taskQueue.add(new GLResorceTask() {    //ConcurrentLinkedQueue<GLResorceTask> taskQueue
            public void perform(GLView gl) {
                for(Entry<Resource, GLResourceLoader> entry : reloadMap.entrySet()) {
                    Resource res = entry.getKey();
                    if(res != null)
                        entry.getValue().load(res);
                }
            }
        });
    }
What am I doing wrong?
