File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/local/feed/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,10 +211,10 @@ class FeedLoadManager(private val context: Context) {
211211 for (notification in list) {
212212 when {
213213 notification.isOnNext -> {
214- val subscriptionId = notification.value.uid
215- val info = notification.value.listInfo
214+ val subscriptionId = notification.value!! .uid
215+ val info = notification.value!! .listInfo
216216
217- notification.value.newStreamsCount = countNewStreams(info.relatedItems)
217+ notification.value!! .newStreamsCount = countNewStreams(info.relatedItems)
218218 feedDatabaseManager.upsertAll(subscriptionId, info.relatedItems)
219219 subscriptionManager.updateFromInfo(subscriptionId, info)
220220
@@ -230,7 +230,7 @@ class FeedLoadManager(private val context: Context) {
230230 }
231231 notification.isOnError -> {
232232 val error = notification.error
233- feedResultsHolder.addError(error)
233+ feedResultsHolder.addError(error!! )
234234
235235 if (error is FeedLoadService .RequestException ) {
236236 feedDatabaseManager.markAsOutdated(error.subscriptionId)
You can’t perform that action at this time.
0 commit comments