diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index 42e0d3c1..11f7600d 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -731,7 +731,8 @@ IGParameterAssert(cell != nil); IGParameterAssert(sectionController != nil); NSIndexPath *indexPath = [self.collectionView indexPathForCell:cell]; - IGAssert(indexPath.section == [self sectionForSectionController:sectionController], + IGAssert(indexPath == nil + || indexPath.section == [self sectionForSectionController:sectionController], @"Requesting a cell from another section controller is not allowed."); return indexPath != nil ? indexPath.item : NSNotFound; }