fix NPE in FeedInfoActivity

This commit is contained in:
Tom Hennen 2015-05-28 17:49:59 -04:00
parent 79ab68d563
commit 9301a3bd98
1 changed files with 5 additions and 1 deletions

View File

@ -120,7 +120,11 @@ public class FeedInfoActivity extends ActionBarActivity {
});
txtvTitle.setText(feed.getTitle());
txtvDescription.setText(feed.getDescription().trim());
String description = feed.getDescription();
if (description == null) {
description = "";
}
txtvDescription.setText(description.trim());
if (feed.getAuthor() != null) {
txtvAuthor.setText(feed.getAuthor());
}