{"action":"closed","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/585","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/585/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/585/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/585","id":59525739,"number":585,"title":"Typo in Hello Analytics example","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":0,"created_at":"2015-03-02T18:44:33Z","updated_at":"2015-03-02T18:44:33Z","closed_at":"2015-03-02T18:44:33Z","body":"```\nVersion of google-api-java-client (e.g. 1.5.0-beta)?\n1.10.3-beta\n\nDescribe the problem.\nThere's a typo in the hello analytics java code:\nhttps://developers.google.com/analytics/resources/tutorials/hello-analytics-api\n\n private static void printResults(GaData results) {\n    if (results != null &l;& !result.getRows().isEmpty()) {\n      System.out.println(\"Profile Name: \" + results.getProfileInfo().getProfileName());\n      System.out.println(\"Total Visits: \" + results.getRows()[0][0]);\n    } else {\n      System.out.println(\"No results found\");\n    }\n\nHow would you expect it to be fixed?\nInstead of !result.getRows().isEmpty()\nit is !results.getRows().isEmpty()\n```\n\nOriginal issue reported on code.google.com by `anand...@gmail.com` on 8 Aug 2012 at 12:39"}}