Skip to content

Commit

Permalink
validate animation node exists to prevent crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Jul 25, 2024
1 parent 8a15bf8 commit 57672a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/movies/MovieDetails.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57672a5

Please sign in to comment.