From 57672a5e760348793f5b35f28b5fcc0d27f36a2b Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 24 Jul 2024 23:41:13 -0400 Subject: [PATCH] validate animation node exists to prevent crash --- components/movies/MovieDetails.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/movies/MovieDetails.bs b/components/movies/MovieDetails.bs index de9f86856..aa2405a4b 100644 --- a/components/movies/MovieDetails.bs +++ b/components/movies/MovieDetails.bs @@ -51,6 +51,7 @@ end sub ' onMoviePosterSwapAnimationStateChange: Handler for changes to m.moviePosterSwapAnimation.state ' sub onMoviePosterSwapAnimationStateChange() + if not isValid(m.moviePosterSwapAnimation) then return if LCase(m.moviePosterSwapAnimation.state) <> "stopped" then return m.moviePoster.uri = m.moviePosterSwap.uri m.moviePoster.opacity = 1