Permalink
Browse files

Guard against nil

  • Loading branch information...
1 parent 9cf8121 commit cbd7ca2ea24a17e7b69a1021c4a3414823628a7d @soffes soffes committed Jun 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 SSFilterableFetchedResultsController.m
@@ -235,6 +235,10 @@ - (NSArray *)sections {
- (id)objectAtIndexPath:(NSIndexPath *)indexPath {
+ if (!indexPath) {
+ return nil;
+ }
+
if (!self.currentFilter) {
return [self.fetchedResultsController objectAtIndexPath:indexPath];
} else {

0 comments on commit cbd7ca2

Please sign in to comment.