{"action":"opened","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/314","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/314/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/314/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/314","id":59361515,"number":314,"title":"AbstractAtomFeedParser causes 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/Component-XML","name":"Component-XML","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":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-28T22:16:15Z","updated_at":"2015-02-28T22:16:15Z","closed_at":null,"body":"```\nversion 1.5.0-beta\n\nDescribe the problem.\n\nparseNextEntry method is passing null into Xml.parseElement(); when feedParsed \nis false, instead of destination object, which causes NPE in \ncontext.add(destination.getClass());\n\n  public Object parseNextEntry() throws IOException, XmlPullParserException {\n    if (!feedParsed) {\n      feedParsed = true;\n      Xml.parseElement(parser, null, namespaceDictionary, Atom.StopAtAtomEntry.INSTANCE);\n    }\n\njava.lang.NullPointerException\n\tat com.google.api.client.xml.Xml.parseElement(Xml.java:202)\n\tat com.google.api.client.xml.atom.AbstractAtomFeedParser.parseNextEntry(AbstractAtomFeedParser.java:170)\n\tat com.google.api.client.http.xml.atom.AtomFeedParser.parseNextEntry(AtomFeedParser.java:79)\n\n\nHow would you expect it to be fixed?\n\nWell I don't see a reason why the feed should be parsed before, why not just \nhaving parsing method that retrieves feed entries ?\n```\n\nOriginal issue reported on code.google.com by `liska.jakub` on 7 Oct 2011 at 11:13"}}