From bb7407f75fff636ca09fe5cc57d3a23775530c14 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 18 Sep 2025 21:37:09 -0400 Subject: [PATCH] [skip ci] Fix rare crash when loading video feed --- CHANGELOG.md | 6 ++++++ .../src/components/VideoFeed/VideoRowListRowContentJob.bs | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75d222b3..d068e8de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Rare crash when loading video feed + ## [0.41.14] - 2025-09-18 ### Fixed diff --git a/playlet-lib/src/components/VideoFeed/VideoRowListRowContentJob.bs b/playlet-lib/src/components/VideoFeed/VideoRowListRowContentJob.bs index 90b656f0..8f2ece2f 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowListRowContentJob.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowListRowContentJob.bs @@ -68,7 +68,9 @@ function ExecuteJob() as void if response.error = Invidious.ERROR_NOT_AUTHENTICATED if feedSources.Count() = 1 parent = feedContentNode.getParent() - parent.removeChild(feedContentNode) + if parent <> invalid + parent.removeChild(feedContentNode) + end if JobSuccess() return end if @@ -80,7 +82,9 @@ function ExecuteJob() as void LogWarnNoTelemetry(feedSource.endpoint, "feedSource not available:", response.error) if feedSources.Count() = 1 parent = feedContentNode.getParent() - parent.removeChild(feedContentNode) + if parent <> invalid + parent.removeChild(feedContentNode) + end if JobSuccess() return end if