mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-24 12:02:37 +01:00
Merge pull request #10229 from Koitharu/bugfix/feed_crash
Fix crash after feed update
This commit is contained in:
commit
8cfba4003d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user