Skip to content

Commit

Permalink
Avoid crashing when no remaining sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Feb 18, 2020
1 parent 1e03dc6 commit caed210
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/PackageSlideShow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ def FindNextMedia
while @next_src_no < @remaining_sizes_per_cd_per_src.size
remaining_sizes = @remaining_sizes_per_cd_per_src[@next_src_no]

break if remaining_sizes.nil?

while @next_cd_no < remaining_sizes.size
return if remaining_sizes[@next_cd_no] > 0

Expand Down

0 comments on commit caed210

Please sign in to comment.