fix NPE cased by absent article title when subscribing feed with local account (#532)

This commit is contained in:
kid1412621 2024-01-16 14:55:29 +08:00 committed by GitHub
parent 0800e838a4
commit 98934d1bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ?: "")