Bug Fix: Playlist item out of range
This should never happen. But apparently it did. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
ced4d73fd6
commit
a744963548
1 changed files with 5 additions and 0 deletions
|
@ -437,6 +437,11 @@ static void *playlistControllerContext = &playlistControllerContext;
|
|||
}
|
||||
|
||||
- (NSView *_Nullable)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *_Nullable)tableColumn row:(NSInteger)row {
|
||||
// What the heck
|
||||
if(row < 0 || row >= [[self arrangedObjects] count]) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
NSImage *cellImage = nil;
|
||||
NSString *cellText = @"";
|
||||
NSString *cellIdentifier = @"";
|
||||
|
|
Loading…
Reference in a new issue