فهرست منبع

library: fix crash if the user is faster with his fingers than us by renaming files

Felix Paul Kühne 11 سال پیش
والد
کامیت
21fdc1d808
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      Sources/VLCPlaylistViewController.m

+ 4 - 0
Sources/VLCPlaylistViewController.m

@@ -706,6 +706,10 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
         indexPaths = [self.collectionView indexPathsForSelectedItems];
     else
         indexPaths = [self.tableView indexPathsForSelectedRows];
+
+    if (indexPaths.count < 1)
+        return;
+
     id mediaObject = _foundMedia[[indexPaths[0] row]];
 
     if ([mediaObject isKindOfClass:[MLAlbum class]] || [mediaObject isKindOfClass:[MLShowEpisode class]] || [mediaObject isKindOfClass:[MLShow class]])