icoderhr / npr-android-app

Automatically exported from code.google.com/p/npr-android-app
0 stars 0 forks source link

Force close while performing Search #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Select Search and then press "Search!" button.
2. Force close sometimes occurs

NullPointerException occurs when story 127928994 retrieved because API returns 
malformed teaser attribute.  See below:

    <story id="127928994">
      <link type="html">http://www.npr.org/templates/story/story.php?storyId=127928994&amp;sc=18&amp;f=</link>
      <link type="api">http://api.npr.org/query?id=127928994&amp;apiKey=XXXXXXXXXXXXXX</link>
      <title><![CDATA[Excerpt: 'The Good Son']]></title>
      <teaser/>
      <storyDate>Sat, 19 Jun 2010 00:00:00 -0400</storyDate>
      <organization orgId="1" orgAbbr="NPR">
        <name>National Public Radio</name>
        <website>http://www.npr.org/</website>
      </organization>
      <byline id="127928995">
        <name>Michael Gruber</name>
      </byline>

Original issue reported on code.google.com by marshgos...@gmail.com on 19 Jun 2010 at 5:38

GoogleCodeExporter commented 8 years ago
Teaser is not malformed.  <teaser /> indicates empty teaser

Original comment by marshgos...@gmail.com on 21 Jun 2010 at 5:29

GoogleCodeExporter commented 8 years ago

Original comment by marshgos...@gmail.com on 24 Jun 2010 at 4:50