fix NPE in FeedInfoActivity
This commit is contained in:
parent
79ab68d563
commit
9301a3bd98
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue