{"action":"created","issue":{"url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/695","repository_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel","labels_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/695/comments","events_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/695/events","html_url":"https://github.com/umano/AndroidSlidingUpPanel/issues/695","id":144069076,"number":695,"title":"Remove SlideListener inside a listener will throw ConcurrentModificationException","user":{"login":"blueberry6401","id":7337535,"avatar_url":"https://avatars.githubusercontent.com/u/7337535?v=3","gravatar_id":"","url":"https://api.github.com/users/blueberry6401","html_url":"https://github.com/blueberry6401","followers_url":"https://api.github.com/users/blueberry6401/followers","following_url":"https://api.github.com/users/blueberry6401/following{/other_user}","gists_url":"https://api.github.com/users/blueberry6401/gists{/gist_id}","starred_url":"https://api.github.com/users/blueberry6401/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueberry6401/subscriptions","organizations_url":"https://api.github.com/users/blueberry6401/orgs","repos_url":"https://api.github.com/users/blueberry6401/repos","events_url":"https://api.github.com/users/blueberry6401/events{/privacy}","received_events_url":"https://api.github.com/users/blueberry6401/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T20:02:07Z","updated_at":"2016-04-05T18:09:08Z","closed_at":null,"body":"I have something like\r\n```\r\nnew SlidingUpPanelLayout.SimplePanelSlideListener() {\r\n            @Override\r\n            public void onPanelStateChanged(...) {\r\n\t\t\t\tmSlidingLayout.removePanelSlideListener(this);\r\n\t\t\t}\r\n}\r\n```\r\n\r\nThis will throw ConcurrentModificationException."},"comment":{"url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/comments/205924285","html_url":"https://github.com/umano/AndroidSlidingUpPanel/issues/695#issuecomment-205924285","issue_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/695","id":205924285,"user":{"login":"charlesdurham","id":6540550,"avatar_url":"https://avatars.githubusercontent.com/u/6540550?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesdurham","html_url":"https://github.com/charlesdurham","followers_url":"https://api.github.com/users/charlesdurham/followers","following_url":"https://api.github.com/users/charlesdurham/following{/other_user}","gists_url":"https://api.github.com/users/charlesdurham/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesdurham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesdurham/subscriptions","organizations_url":"https://api.github.com/users/charlesdurham/orgs","repos_url":"https://api.github.com/users/charlesdurham/repos","events_url":"https://api.github.com/users/charlesdurham/events{/privacy}","received_events_url":"https://api.github.com/users/charlesdurham/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T18:09:08Z","updated_at":"2016-04-05T18:09:08Z","body":"Looks like this is because:\r\n\r\n`private List<PanelSlideListener> mPanelSlideListeners = new ArrayList<>();`\r\n\r\nShould probably be a `CopyOnWriteArrayList` http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/CopyOnWriteArrayList.html"}}