{"action":"created","issue":{"url":"https://api.github.com/repos/halfhp/androidplot/issues/19","repository_url":"https://api.github.com/repos/halfhp/androidplot","labels_url":"https://api.github.com/repos/halfhp/androidplot/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/halfhp/androidplot/issues/19/comments","events_url":"https://api.github.com/repos/halfhp/androidplot/issues/19/events","html_url":"https://github.com/halfhp/androidplot/issues/19","id":192367248,"number":19,"title":"PanZoom errors with series of different sizes","user":{"login":"Erhannis","id":3024589,"avatar_url":"https://avatars.githubusercontent.com/u/3024589?v=3","gravatar_id":"","url":"https://api.github.com/users/Erhannis","html_url":"https://github.com/Erhannis","followers_url":"https://api.github.com/users/Erhannis/followers","following_url":"https://api.github.com/users/Erhannis/following{/other_user}","gists_url":"https://api.github.com/users/Erhannis/gists{/gist_id}","starred_url":"https://api.github.com/users/Erhannis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erhannis/subscriptions","organizations_url":"https://api.github.com/users/Erhannis/orgs","repos_url":"https://api.github.com/users/Erhannis/repos","events_url":"https://api.github.com/users/Erhannis/events{/privacy}","received_events_url":"https://api.github.com/users/Erhannis/received_events","type":"User","site_admin":false},"labels":[{"id":442832132,"url":"https://api.github.com/repos/halfhp/androidplot/labels/investigating","name":"investigating","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"assignees":[{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-29T18:53:00Z","updated_at":"2016-12-03T14:20:06Z","closed_at":null,"body":"When I have series with differing numbers of points, I get null pointer exceptions (and correspondingly glitchy graphics) when I try to zoom in.\r\n\r\nE/com.androidplot.Plot: Exception while rendering Plot.\r\n                        java.lang.NullPointerException: Attempt to read from field 'float android.graphics.PointF.x' on a null object reference\r\n                            at com.androidplot.xy.LineAndPointRenderer.renderPoints(LineAndPointRenderer.java:225)\r\n                            at com.androidplot.xy.LineAndPointRenderer.drawSeries(LineAndPointRenderer.java:190)\r\n                            at com.androidplot.xy.LineAndPointRenderer.onRender(LineAndPointRenderer.java:50)\r\n                            at com.androidplot.xy.LineAndPointRenderer.onRender(LineAndPointRenderer.java:37)\r\n                            at com.androidplot.ui.SeriesRenderer.render(SeriesRenderer.java:59)\r\n                            at com.androidplot.xy.XYGraphWidget.drawData(XYGraphWidget.java:769)\r\n                            at com.androidplot.xy.XYGraphWidget.doOnDraw(XYGraphWidget.java:458)\r\n                            at com.androidplot.ui.widget.Widget.draw(Widget.java:347)\r\n                            at com.androidplot.ui.LayoutManager.draw(LayoutManager.java:109)\r\n                            at com.androidplot.Plot.renderOnCanvas(Plot.java:822)\r\n                            at com.androidplot.Plot$1.run(Plot.java:390)\r\n                            at java.lang.Thread.run(Thread.java:818)\r\n\r\nNote that when I put a breakpoint there, conditional on p == null, inspecting `points` shows no nulls, which leads me to suspect threading issues.  On the other hand, I've put a breakpoint before the loop, and even inspecting `points` each time it stops there (each time showing no nulls) somehow I still get null pointer exceptions, which leads me to suspect debugger inconsistencies."},"comment":{"url":"https://api.github.com/repos/halfhp/androidplot/issues/comments/264642079","html_url":"https://github.com/halfhp/androidplot/issues/19#issuecomment-264642079","issue_url":"https://api.github.com/repos/halfhp/androidplot/issues/19","id":264642079,"user":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T14:20:06Z","updated_at":"2016-12-03T14:20:06Z","body":"So far I've been unable to replicate the NullPointerException.  I did however find a couple potential bugs / optimizations while investigating which will be included in the 1.3.1 release going out a little later today.\r\n\r\nPerhaps these fixes will help resolve the issues you are seeing, but I suspect there is still something else going on.   If you have a sample app or a list of changes I could make to one of the demo apps to replicate the issue it would be a huge help in tracking down what's going on here."}}
{"actor":{"display_login":"halfhp"}}