Skip to content

Commit

Permalink
Prevent IndexOutOfBoundsException for FrescoVitoSlideshowComponentSpec
Browse files Browse the repository at this point in the history
Reviewed By: steelrooter

Differential Revision: D56299889

fbshipit-source-id: 92697f0d99e2472bf7ef9f3e06208f39cfe0be66
  • Loading branch information
oprisnik authored and facebook-github-bot committed Apr 18, 2024
1 parent 0a776fb commit 78a40c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ object FrescoVitoSlideshowComponentSpec {
fetchNextImage(
c.resources,
slideshowDrawable,
uris[slideshowIndex],
uris[slideshowIndex % uris.size],
imageOptions,
callerContext,
contextChain,
Expand Down Expand Up @@ -179,7 +179,7 @@ object FrescoVitoSlideshowComponentSpec {
fetchNextImage(
resources,
slideshowDrawable,
uris[nextIndex],
uris[nextIndex % uris.size],
options,
callerContext,
contextChain,
Expand Down

0 comments on commit 78a40c2

Please sign in to comment.