Fix adding YouTube feeds

This commit is contained in:
Cj Malone 2016-11-19 17:47:52 +00:00
parent 7f29627ac7
commit 909aea006c

View File

@ -355,7 +355,7 @@ public class OnlineFeedViewActivity extends AppCompatActivity {
*/
private void beforeShowFeedInformation(Feed feed) {
final HtmlToPlainText formatter = new HtmlToPlainText();
if(Feed.TYPE_ATOM1.equals(feed.getType())) {
if(Feed.TYPE_ATOM1.equals(feed.getType()) && feed.getDescription() != null) {
// remove HTML tags from descriptions
Log.d(TAG, "Removing HTML from feed description");
Document feedDescription = Jsoup.parse(feed.getDescription());