{"action":"created","issue":{"url":"https://api.github.com/repos/jd-alexander/Google-Directions-Android/issues/35","labels_url":"https://api.github.com/repos/jd-alexander/Google-Directions-Android/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/jd-alexander/Google-Directions-Android/issues/35/comments","events_url":"https://api.github.com/repos/jd-alexander/Google-Directions-Android/issues/35/events","html_url":"https://github.com/jd-alexander/Google-Directions-Android/issues/35","id":110509683,"number":35,"title":"java.lang.NullPointerException","user":{"login":"nicolasjafelle","id":526123,"avatar_url":"https://avatars.githubusercontent.com/u/526123?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasjafelle","html_url":"https://github.com/nicolasjafelle","followers_url":"https://api.github.com/users/nicolasjafelle/followers","following_url":"https://api.github.com/users/nicolasjafelle/following{/other_user}","gists_url":"https://api.github.com/users/nicolasjafelle/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasjafelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasjafelle/subscriptions","organizations_url":"https://api.github.com/users/nicolasjafelle/orgs","repos_url":"https://api.github.com/users/nicolasjafelle/repos","events_url":"https://api.github.com/users/nicolasjafelle/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasjafelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T18:04:46Z","updated_at":"2015-10-09T23:38:11Z","closed_at":null,"body":"Apparently shortestRoute is initialized in null when:\r\n\r\n```java\r\nresult != null but is 0\r\n//Line 99 in AbstractRouting class\r\ni$ = shortestRoute.getPoints().iterator(); // at this point shortestRoute is null\r\n```\r\n\r\n```\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.directions.route.Route.getPoints()' on a null object reference\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at com.directions.route.AbstractRouting.onPostExecute(AbstractRouting.java:146)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at com.directions.route.AbstractRouting.onPostExecute(AbstractRouting.java:20)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at android.os.AsyncTask.finish(AsyncTask.java:636)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at android.os.AsyncTask.access$500(AsyncTask.java:177)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n10-08 15:02:07.212 6045-6045/ai.home E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n```"},"comment":{"url":"https://api.github.com/repos/jd-alexander/Google-Directions-Android/issues/comments/147011639","html_url":"https://github.com/jd-alexander/Google-Directions-Android/issues/35#issuecomment-147011639","issue_url":"https://api.github.com/repos/jd-alexander/Google-Directions-Android/issues/35","id":147011639,"user":{"login":"jd-alexander","id":1509205,"avatar_url":"https://avatars.githubusercontent.com/u/1509205?v=3","gravatar_id":"","url":"https://api.github.com/users/jd-alexander","html_url":"https://github.com/jd-alexander","followers_url":"https://api.github.com/users/jd-alexander/followers","following_url":"https://api.github.com/users/jd-alexander/following{/other_user}","gists_url":"https://api.github.com/users/jd-alexander/gists{/gist_id}","starred_url":"https://api.github.com/users/jd-alexander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jd-alexander/subscriptions","organizations_url":"https://api.github.com/users/jd-alexander/orgs","repos_url":"https://api.github.com/users/jd-alexander/repos","events_url":"https://api.github.com/users/jd-alexander/events{/privacy}","received_events_url":"https://api.github.com/users/jd-alexander/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T23:38:11Z","updated_at":"2015-10-09T23:38:11Z","body":"Okay. Would be nice if you submit a PR to fix the issue. Currently working on releasing my app (wakesocialapp.com)  so can't touch this as yet "}}