From b6f6728e53c54dc6e0739c031010818ab3e06d0a Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 1 Oct 2024 09:08:17 -0400 Subject: [PATCH] prevent app crash when reloading movie details --- source/Main.bs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/Main.bs b/source/Main.bs index 33c3ba856..5865c7c94 100644 --- a/source/Main.bs +++ b/source/Main.bs @@ -248,11 +248,13 @@ sub Main (args as dynamic) as void currentScene.itemContent.json = api.users.GetItem(m.global.session.user.id, currentScene.itemContent.id) movieMetaData = ItemMetaData(currentScene.itemContent.id) - ' Redraw movie poster - currentScene.newPosterImageURI = movieMetaData.posterURL + if isValid(movieMetaData) + ' Redraw movie poster + currentScene.newPosterImageURI = movieMetaData.posterURL - ' Set updated starting point for the queue item - m.global.queueManager.callFunc("setTopStartingPoint", currentScene.itemContent.json.UserData.PlaybackPositionTicks) + ' Set updated starting point for the queue item + m.global.queueManager.callFunc("setTopStartingPoint", currentScene.itemContent.json.UserData.PlaybackPositionTicks) + end if end if stopLoadingSpinner()