{"action":"closed","issue":{"url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material/issues/437","repository_url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material","labels_url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material/issues/437/comments","events_url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material/issues/437/events","html_url":"https://github.com/GwtMaterialDesign/gwt-material/issues/437","id":173611996,"number":437,"title":"MaterialListBox throws exception on change in selected item","user":{"login":"volgin","id":297748,"avatar_url":"https://avatars.githubusercontent.com/u/297748?v=3","gravatar_id":"","url":"https://api.github.com/users/volgin","html_url":"https://github.com/volgin","followers_url":"https://api.github.com/users/volgin/followers","following_url":"https://api.github.com/users/volgin/following{/other_user}","gists_url":"https://api.github.com/users/volgin/gists{/gist_id}","starred_url":"https://api.github.com/users/volgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volgin/subscriptions","organizations_url":"https://api.github.com/users/volgin/orgs","repos_url":"https://api.github.com/users/volgin/repos","events_url":"https://api.github.com/users/volgin/events{/privacy}","received_events_url":"https://api.github.com/users/volgin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/GwtMaterialDesign/gwt-material/labels/ready","name":"ready","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-27T19:41:13Z","updated_at":"2016-08-30T08:19:08Z","closed_at":"2016-08-30T08:19:08Z","body":"When I change a selection in a MaterialListBox, the console shows this:\r\n\r\n> onChangeInternal threw an exception\r\n> ConsoleLogger.java:55 Exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0\r\n> ConsoleLogger.java:32 undefined\r\n> \r\n\r\n\"onValueChange\" is never executed.\r\n\r\nI define MaterialListBox in UiBinder:\r\n\r\n`<m:MaterialListBox ui:field=\"company\" placeholder=\"Company\" /> `\r\n\r\nand then add ValueChangeHandler:\r\n\r\n```\r\ncompany.addValueChangeHandler(new ValueChangeHandler<String>() {\r\n\r\n\t@Override\r\n\tpublic void onValueChange(ValueChangeEvent<String> event) {\r\n\t\tGWT.log(\"Changed selection\");  // never fires\r\n\t}\r\n\t\t\t\r\n});\r\n\r\n```\r\n\r\nI use the Master branch."}}
{"actor":{"display_login":"kevzlou7979"}}