diff --git a/UzysAssetsPickerController/Library/UzysGroupPickerView.m b/UzysAssetsPickerController/Library/UzysGroupPickerView.m index 4a66622..6e6fa9d 100644 --- a/UzysAssetsPickerController/Library/UzysGroupPickerView.m +++ b/UzysAssetsPickerController/Library/UzysGroupPickerView.m @@ -117,7 +117,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N { cell = [[UzysGroupViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; } - [cell applyData:[self.groups objectAtIndex:indexPath.row]]; + + if (self.groups.count > 0) { + [cell applyData:[self.groups objectAtIndex:indexPath.row]]; + } + return cell; }