Skip to content

Commit

Permalink
fix(rss): fix NPE when published date and updated date are both empty
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Mar 14, 2024
1 parent fab99b2 commit 4413686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class RssHelper @Inject constructor(
id = accountId.spacerDollar(UUID.randomUUID().toString()),
accountId = accountId,
feedId = feed.id,
date = (syndEntry.publishedDate ?: syndEntry.updatedDate).takeIf { !it.isFuture(preDate) } ?: preDate,
date = (syndEntry.publishedDate ?: syndEntry.updatedDate)?.takeIf { !it.isFuture(preDate) } ?: preDate,
title = syndEntry.title.decodeHTML() ?: feed.name,
author = syndEntry.author,
rawDescription = (content ?: desc) ?: "",
Expand Down

0 comments on commit 4413686

Please sign in to comment.