{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/172","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/172/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/172/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/172","id":59361174,"number":172,"title":"Google Latitude API v1-json-oauth-sample fails with IllegalArgumentException","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-28T22:11:43Z","updated_at":"2015-02-28T22:11:44Z","closed_at":"2015-02-28T22:11:43Z","body":"```\n\nVersion of google-api-java-client (e.g. 1.3.1-alpha)?\n\n1.3.1-alpha\n\nJava environment (e.g. Java 6, Android 2.3, App Engine 1.4.2)?\n\nJava 6\n\nDescribe the problem.\n\nWhen retrieving the currentLocation, an HTTP response 200 is returned with the \nfollowing content :\n\n{ \"data\": {  \"kind\": \"latitude#location\",  \"timestampMs\": \"1302281187688\",  \n\"latitude\": 44.3148443,  \"longitude\": -85.6023643 }}\n\nWhen attempting to parse this (using \nrequest.execute().parseAs(LocationResource.class)), the following exception \noccurs\n\n04-11 12:45:25.874: WARN/System.err(349): java.lang.IllegalArgumentException: \nnull\n04-11 12:45:25.894: WARN/System.err(349):     at \ncom.google.common.base.Preconditions.checkArgument(Preconditions.java:88)\n04-11 12:45:25.924: WARN/System.err(349):     at \ncom.google.api.client.json.JsonParser.startParsingObject(JsonParser.java:157)\n04-11 12:45:25.944: WARN/System.err(349):     at \ncom.google.api.client.json.JsonParser.skipToKey(JsonParser.java:132)\n04-11 12:45:25.954: WARN/System.err(349):     at \ncom.google.api.client.googleapis.json.JsonCParser.parserForResponse(JsonCParser.\njava:83)\n04-11 12:45:25.974: WARN/System.err(349):     at \ncom.google.api.client.googleapis.json.JsonCParser.parse(JsonCParser.java:49)\n04-11 12:45:25.984: WARN/System.err(349):     at \ncom.google.api.client.http.HttpResponse.parseAs(HttpResponse.java:261)\n04-11 12:45:25.994: WARN/System.err(349):     at \ncom.google.api.client.sample.latitude.model.LocationResource.executeGetCurrentLo\ncation(LocationResource.java:85)\n04-11 12:45:26.004: WARN/System.err(349):     at \ncom.ecs.android.sample.oauth.google.api.java.client.AndroidOauthGoogleApiJavaCli\nent.showCurrentLocation(AndroidOauthGoogleApiJavaClient.java:94)\n04-11 12:45:26.014: WARN/System.err(349):     at \ncom.ecs.android.sample.oauth.google.api.java.client.AndroidOauthGoogleApiJavaCli\nent.performApiCall(AndroidOauthGoogleApiJavaClient.java:70)\n04-11 12:45:26.024: WARN/System.err(349):     at \ncom.ecs.android.sample.oauth.google.api.java.client.AndroidOauthGoogleApiJavaCli\nent.onCreate(AndroidOauthGoogleApiJavaClient.java:55)\n04-11 12:45:26.034: WARN/System.err(349):     at \nandroid.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)\n04-11 12:45:26.034: WARN/System.err(349):     at \nandroid.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)\n04-11 12:45:26.054: WARN/System.err(349):     at \nandroid.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)\n04-11 12:45:26.064: WARN/System.err(349):     at \nandroid.app.ActivityThread.access$2200(ActivityThread.java:119)\n04-11 12:45:26.074: WARN/System.err(349):     at \nandroid.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)\n04-11 12:45:26.084: WARN/System.err(349):     at \nandroid.os.Handler.dispatchMessage(Handler.java:99)\n04-11 12:45:26.084: WARN/System.err(349):     at \nandroid.os.Looper.loop(Looper.java:123)\n04-11 12:45:26.094: WARN/System.err(349):     at \nandroid.app.ActivityThread.main(ActivityThread.java:4363)\n04-11 12:45:26.104: WARN/System.err(349):     at \njava.lang.reflect.Method.invokeNative(Native Method)\n04-11 12:45:26.114: WARN/System.err(349):     at \njava.lang.reflect.Method.invoke(Method.java:521)\n04-11 12:45:26.114: WARN/System.err(349):     at \ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)\n04-11 12:45:26.124: WARN/System.err(349):     at \ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\n04-11 12:45:26.134: WARN/System.err(349):     at \ndalvik.system.NativeStart.main(Native Method)\n\nHow would you expect it to be fixed?\n\nShouldn't throw an exception, as an HTTP 200 response was returned from the \nLatitude API.\n\n```\n\nOriginal issue reported on code.google.com by `ddewa...@gmail.com` on 11 Apr 2011 at 1:03"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76550388","html_url":"https://github.com/chrsmith/google-api-java-client/issues/172#issuecomment-76550388","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/172","id":76550388,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T22:11:44Z","updated_at":"2015-02-28T22:11:44Z","body":"```\nI'm having the same problem. Checked out today.\n```\n\nOriginal comment by `michael....@gmail.com` on 30 Aug 2011 at 8:46"}}