Open GoogleCodeExporter opened 9 years ago
I just started playing around with the source code and hit this error as well.
Cause: The 'layout' field of the story is not being set by
Story.createNprmlStory(Node node), as the xml returned by the server and fed
into this method does not contain a 'layout' node.
Not sure if this is a server side error or if the XML format changed at some
point and this application wasn't updated.
The null pointer exception is being thrown in NewsStoryActivity.loadStory on
the following line:
if (story.getLayout().getItems().size() > 0) {
The solution is easy: check the value of getLayout before using it :-) The
accompanying else looks like it already includes code for handling cases where
the layout is missing.
I will try it out and submit the fix.
Original comment by acidpopt...@gmail.com
on 2 Sep 2014 at 6:04
I've got a confirmed fix and patch ready. Will send it over to the devs for
approval.
Original comment by acidpopt...@gmail.com
on 2 Sep 2014 at 6:30
Original issue reported on code.google.com by
webe...@gmail.com
on 23 Mar 2014 at 9:53