{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/904","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/904/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/904/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/904","id":59382854,"number":904,"title":"Method Credential.refreshToken calls TokenResponseException.from which throws NullPointerException","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":10,"created_at":"2015-03-01T06:06:12Z","updated_at":"2015-03-01T06:06:14Z","closed_at":"2015-03-01T06:06:12Z","body":"```\nVersion of google-api-java-client (e.g. 1.15.0-rc)?\n1.18.0-rc\n\nJava environment (e.g. Java 6, Android 2.3, App Engine)?\nJava 1.7.0_55-b13 on Linux Gentoo 3.12.20\n\nDescribe the problem.\njava.lang.NullPointerException\n        at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)\n        at com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)\n        at com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:96)\n        at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)\n        at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)\n        at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)\n        at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)\n        at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)\n        at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)\n        at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:247)\n        at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)\n\nHow would you expect it to be fixed?\nSurely there has to be a cutomized runtime exception instead of NPE to figure \nout the cause.\n\n```\n\nOriginal issue reported on code.google.com by `KoichiSe...@gmail.com` on 18 Sep 2014 at 12:36"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76578288","html_url":"https://github.com/chrsmith/google-api-java-client/issues/904#issuecomment-76578288","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/904","id":76578288,"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-03-01T06:06:14Z","updated_at":"2015-03-01T06:06:14Z","body":"```\nMoved to: Issue google-oauth-java-client:101\n```\n\nOriginal comment by `wonder...@google.com` on 29 Dec 2014 at 7:47\n* Changed state: **Moved**"}}