Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractAtomFeedParser causes NullPointerException #329

Closed
wonderfly opened this issue Jan 10, 2015 · 2 comments
Closed

AbstractAtomFeedParser causes NullPointerException #329

wonderfly opened this issue Jan 10, 2015 · 2 comments
Assignees
Labels
imported 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@wonderfly
Copy link
Contributor

From liska.jakub on October 07, 2011 16:13:08

version 1.5.0-beta Describe the problem. parseNextEntry method is passing null into Xml.parseElement(); when feedParsed is false, instead of destination object, which causes NPE in context.add(destination.getClass());

public Object parseNextEntry() throws IOException, XmlPullParserException {
if (!feedParsed) {
feedParsed = true;
Xml.parseElement(parser, null, namespaceDictionary, Atom.StopAtAtomEntry.INSTANCE);
}

java.lang.NullPointerException
at com.google.api.client.xml.Xml.parseElement(Xml.java:202)
at com.google.api.client.xml.atom.AbstractAtomFeedParser.parseNextEntry(AbstractAtomFeedParser.java:170)
at com.google.api.client.http.xml.atom.AtomFeedParser.parseNextEntry(AtomFeedParser.java:79) How would you expect it to be fixed? Well I don't see a reason why the feed should be parsed before, why not just having parsing method that retrieves feed entries ?

Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=314

@wonderfly wonderfly added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. imported priority: p2 Moderately-important priority. Fix may not be included in next release. 2–5 stars labels Jan 10, 2015
@wonderfly wonderfly self-assigned this Jan 10, 2015
@wonderfly
Copy link
Contributor Author

From rmis...@google.com on January 14, 2013 07:31:05

Owner: yan...@google.com

@wonderfly
Copy link
Contributor Author

From yan...@google.com on January 14, 2013 08:08:40

Labels: Component-XML

@wonderfly wonderfly removed their assignment May 19, 2016
@mattwhisenhunt mattwhisenhunt added status: investigating and removed priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 6, 2018
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
@JustinBeckwith JustinBeckwith self-assigned this Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants