From f14328bd17addd2e64bb1a73d9f66a48a43ec4ad Mon Sep 17 00:00:00 2001 From: Curtis Caulfield Date: Wed, 4 Dec 2024 17:25:50 +0000 Subject: [PATCH] fix(search): added if-null check for playlist video count --- lib/src/reverse_engineering/pages/search_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/reverse_engineering/pages/search_page.dart b/lib/src/reverse_engineering/pages/search_page.dart index 9b46520..a73d8bc 100644 --- a/lib/src/reverse_engineering/pages/search_page.dart +++ b/lib/src/reverse_engineering/pages/search_page.dart @@ -265,7 +265,7 @@ class _InitialData extends InitialData { viewModel .getJson( 'contentImage/collectionThumbnailViewModel/primaryThumbnail/thumbnailViewModel/overlays/0/thumbnailOverlayBadgeViewModel/thumbnailBadges/0/thumbnailBadgeViewModel/text')! - .parseInt()!, + .parseInt() ?? 0, thumbnails .map((e) => Thumbnail(Uri.parse(e['url']), e['height'], e['width']))