Skip to content

Commit

Permalink
fix NPE cased by absent article title when subscribing feed with loca…
Browse files Browse the repository at this point in the history
…l account (#532)
  • Loading branch information
kid1412621 authored Jan 16, 2024
1 parent 0800e83 commit 98934d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class RssHelper @Inject constructor(
accountId = accountId,
feedId = feed.id,
date = syndEntry.publishedDate ?: syndEntry.updatedDate ?: Date(),
title = Html.fromHtml(syndEntry.title.toString()).toString(),
title = Html.fromHtml(syndEntry.title ?: feed.name).toString(),
author = syndEntry.author,
rawDescription = (content ?: desc) ?: "",
shortDescription = (Readability4JExtended("", desc ?: content ?: "")
Expand Down

0 comments on commit 98934d1

Please sign in to comment.