Skip to content

Commit

Permalink
Merge pull request #10229 from Koitharu/bugfix/feed_crash
Browse files Browse the repository at this point in the history
Fix crash after feed update
  • Loading branch information
TobiGr authored Jul 14, 2023
2 parents f8599d1 + 01b46ed commit 8cfba40
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,7 @@ class FeedLoadService : Service() {
.doOnSubscribe {
startForeground(NOTIFICATION_ID, notificationBuilder.build())
}
.subscribe { _, error ->
// There seems to be a bug in the kotlin plugin as it tells you when
// building that this can't be null:
// "Condition 'error != null' is always 'true'"
// However it can indeed be null
// The suppression may be removed in further versions
@Suppress("SENSELESS_COMPARISON")
.subscribe { _, error: Throwable? -> // explicitly mark error as nullable
if (error != null) {
Log.e(TAG, "Error while storing result", error)
handleError(error)
Expand Down

0 comments on commit 8cfba40

Please sign in to comment.