{"action":"created","issue":{"url":"https://api.github.com/repos/oxyplot/oxyplot/issues/784","repository_url":"https://api.github.com/repos/oxyplot/oxyplot","labels_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/784/comments","events_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/784/events","html_url":"https://github.com/oxyplot/oxyplot/issues/784","id":134832671,"number":784,"title":"AreaSeries throws NullReferenceException","user":{"login":"GeertvanHorrik","id":1246444,"avatar_url":"https://avatars.githubusercontent.com/u/1246444?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertvanHorrik","html_url":"https://github.com/GeertvanHorrik","followers_url":"https://api.github.com/users/GeertvanHorrik/followers","following_url":"https://api.github.com/users/GeertvanHorrik/following{/other_user}","gists_url":"https://api.github.com/users/GeertvanHorrik/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertvanHorrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertvanHorrik/subscriptions","organizations_url":"https://api.github.com/users/GeertvanHorrik/orgs","repos_url":"https://api.github.com/users/GeertvanHorrik/repos","events_url":"https://api.github.com/users/GeertvanHorrik/events{/privacy}","received_events_url":"https://api.github.com/users/GeertvanHorrik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oxyplot/oxyplot/labels/unconfirmed-bug","name":"unconfirmed-bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-19T10:40:10Z","updated_at":"2016-02-21T20:45:31Z","closed_at":null,"body":"When working on examples for the animations, the AreaSeries throws an exception (but can continue to display data):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1246444/13173388/7d6a0ba6-d6fd-11e5-95c7-166bff8f535f.png)\r\n\r\nI think a (actualPoints == null || actualPoints.Count == 0) solves this."},"comment":{"url":"https://api.github.com/repos/oxyplot/oxyplot/issues/comments/186911729","html_url":"https://github.com/oxyplot/oxyplot/issues/784#issuecomment-186911729","issue_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/784","id":186911729,"user":{"login":"objorke","id":439716,"avatar_url":"https://avatars.githubusercontent.com/u/439716?v=3","gravatar_id":"","url":"https://api.github.com/users/objorke","html_url":"https://github.com/objorke","followers_url":"https://api.github.com/users/objorke/followers","following_url":"https://api.github.com/users/objorke/following{/other_user}","gists_url":"https://api.github.com/users/objorke/gists{/gist_id}","starred_url":"https://api.github.com/users/objorke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objorke/subscriptions","organizations_url":"https://api.github.com/users/objorke/orgs","repos_url":"https://api.github.com/users/objorke/repos","events_url":"https://api.github.com/users/objorke/events{/privacy}","received_events_url":"https://api.github.com/users/objorke/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T20:45:31Z","updated_at":"2016-02-21T20:45:31Z","body":"could this be due to a race condition in your code? are you updating the plot model and redrawing at the same time?\r\n\r\nwe have had some similar issues, and I think it is ok to make this consistent with LineSeries:\r\nhttps://github.com/oxyplot/oxyplot/blob/develop/Source/OxyPlot/Series/LineSeries.cs#L327"}}