{"action":"created","issue":{"url":"https://api.github.com/repos/mapsforge/mapsforge/issues/645","labels_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/645/comments","events_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/645/events","html_url":"https://github.com/mapsforge/mapsforge/issues/645","id":93370711,"number":645,"title":"Invalid Number of Way Nodes","user":{"login":"lincomatic","id":1422186,"avatar_url":"https://avatars.githubusercontent.com/u/1422186?v=3","gravatar_id":"","url":"https://api.github.com/users/lincomatic","html_url":"https://github.com/lincomatic","followers_url":"https://api.github.com/users/lincomatic/followers","following_url":"https://api.github.com/users/lincomatic/following{/other_user}","gists_url":"https://api.github.com/users/lincomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/lincomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincomatic/subscriptions","organizations_url":"https://api.github.com/users/lincomatic/orgs","repos_url":"https://api.github.com/users/lincomatic/repos","events_url":"https://api.github.com/users/lincomatic/events{/privacy}","received_events_url":"https://api.github.com/users/lincomatic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapsforge/mapsforge/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-07-06T20:30:59Z","updated_at":"2015-11-14T01:17:39Z","closed_at":null,"body":"It is a common occurrence to get a warning message from this block in MapFile.java:\r\n\r\n\t\t\tif (numberOfWayNodes < 2 || numberOfWayNodes > Short.MAX_VALUE) {\r\n\t\t\t\tLOGGER.warning(\"invalid number of way nodes: \" + numberOfWayNodes);\r\n\t\t\t\t// returning null here will actually leave the tile blank as the\r\n\t\t\t\t// position on the ReadBuffer will not be advanced correctly. However,\r\n\t\t\t\t// it will not crash the app.\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\nwith numberOfWayNodes == 0. I'm guessing it's a bug in the map writer. An example is in japan.map, in the block where z=4,x=13,y=6"},"comment":{"url":"https://api.github.com/repos/mapsforge/mapsforge/issues/comments/156603345","html_url":"https://github.com/mapsforge/mapsforge/issues/645#issuecomment-156603345","issue_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/645","id":156603345,"user":{"login":"lincomatic","id":1422186,"avatar_url":"https://avatars.githubusercontent.com/u/1422186?v=3","gravatar_id":"","url":"https://api.github.com/users/lincomatic","html_url":"https://github.com/lincomatic","followers_url":"https://api.github.com/users/lincomatic/followers","following_url":"https://api.github.com/users/lincomatic/following{/other_user}","gists_url":"https://api.github.com/users/lincomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/lincomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincomatic/subscriptions","organizations_url":"https://api.github.com/users/lincomatic/orgs","repos_url":"https://api.github.com/users/lincomatic/repos","events_url":"https://api.github.com/users/lincomatic/events{/privacy}","received_events_url":"https://api.github.com/users/lincomatic/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T01:17:38Z","updated_at":"2015-11-14T01:17:38Z","body":"Yes, the bug was in the writer. The fix is in my PR: https://github.com/mapsforge/mapsforge/pull/719"}}