{"action":"opened","issue":{"url":"https://api.github.com/repos/google/google-visualization-api-issues/issues/443","labels_url":"https://api.github.com/repos/google/google-visualization-api-issues/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/google/google-visualization-api-issues/issues/443/comments","events_url":"https://api.github.com/repos/google/google-visualization-api-issues/issues/443/events","html_url":"https://github.com/google/google-visualization-api-issues/issues/443","id":74511835,"number":443,"title":"Bug: GWT remove chart, re-add  and re-draw causes \"a is null\"  Exception","user":{"login":"orwant","id":9052763,"avatar_url":"https://avatars.githubusercontent.com/u/9052763?v=3","gravatar_id":"","url":"https://api.github.com/users/orwant","html_url":"https://github.com/orwant","followers_url":"https://api.github.com/users/orwant/followers","following_url":"https://api.github.com/users/orwant/following{/other_user}","gists_url":"https://api.github.com/users/orwant/gists{/gist_id}","starred_url":"https://api.github.com/users/orwant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orwant/subscriptions","organizations_url":"https://api.github.com/users/orwant/orgs","repos_url":"https://api.github.com/users/orwant/repos","events_url":"https://api.github.com/users/orwant/events{/privacy}","received_events_url":"https://api.github.com/users/orwant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/google-visualization-api-issues/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/google/google-visualization-api-issues/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-08T22:12:49Z","updated_at":"2015-05-08T22:12:49Z","closed_at":null,"body":"Original [issue 446](https://code.google.com/p/google-visualization-api-issues/issues/detail?id=446) created by orwant on 2010-10-29T08:36:55.000Z:\n\n<b>What steps will reproduce the problem? Please provide a link to a</b>\n<b>demonstration page if at all possible, or attach code.</b>\n\r\nSample code:\r\n\r\nprivate FlowPanel container; \r\nprivate PieChart piechart; \r\n\r\npublic void onModuleLoad() { \r\n   // display initial Piechart with Testdata \r\n   container = new FlowPanel(); \r\n   piechart = new PieChart(); \r\n   container.add(piechart); \r\n   RootPanel.get().add(container); \r\n   piechart.draw(createTable(),createOptions()); -&gt; works \r\n   \r\n// add Button which clears the container Panel and redraws the \r\npiechart \r\n   Button button = new Button(&quot;reload&quot;); \r\n   container.add(button); \r\n   button.addClickHandler(new ClickHandler() { \r\n       @Override \r\n       public void onClick(ClickEvent event) { \r\n         container.clear(); \r\n         container.add(piechart1); \r\n         piechart.draw(createTable(),createOptions());  --&gt; throw Exception\r\n       } \r\n   }); \r\n} \r\n\r\ncreateTable and creatOptions are just helper-function to create some \r\nsample DataTable and Visualization Options (taken from another sample) \r\n\r\n<b>What component is this issue related to (PieChart, LineChart, DataTable,</b>\n<b>Query, etc)?</b>\n\r\nTried it with Piechart but also happens with Barchart. Assume that it happens with all other corecharts.\r\n\r\n<b>Are you using the test environment (version 1.1)?</b>\n<b>(If you are not sure, answer NO)</b>\n\r\nException is thrown in Stable Version (1.0). No Exception in RC (1.1) but chart is not displayed.\r\n\r\n\r\n<b>What operating system and browser are you using?</b>\n\r\nUbuntu 10.10 64 bit \r\n\r\n<b>*********************************************************</b>\n<b>For developers viewing this issue: please click the 'star' icon to be</b>\n<b>notified of future changes, and to let us know how many of you are</b>\n<b>interested in seeing it resolved.</b>\n<b>*********************************************************</b>\n"}}