From 525d545b81d6a3835d8946991a78a9ef6e46ce0e Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sat, 20 Jul 2024 15:05:35 -0400 Subject: [PATCH] validate season metadata to prevent crash --- source/Main.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Main.bs b/source/Main.bs index 814d1dff7..3b3799e71 100644 --- a/source/Main.bs +++ b/source/Main.bs @@ -232,7 +232,7 @@ sub Main (args as dynamic) as void end if seasonMetaData = ItemMetaData(currentScene.seasonData.id) - currentScene.seasonData = seasonMetaData.json + if isValid(seasonMetaData) then currentScene.seasonData = seasonMetaData.json currentScene.episodeObjects = currentScene.objects currentScene.callFunc("updateSeason") end if