     }
     
     public func objectAt(indexPath: NSIndexPath) -> AnyObject {
-        return fetchedController.objectAtIndexPath(indexPath)
+        return fetchedController!.objectAtIndexPath(indexPath)
     }
 }

    }
    
    public func isEmpty() -> Bool {
        return fetchedController.fetchedObjects?.count == 0
    }
    
    public func contentChanged() {

public class FetchedCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, NSFetchedResultsControllerDelegate {
    
    @IBOutlet public var collectionView: UICollectionView!
    private var fetchedController: NSFetchedResultsController?
    private var measuringCell: UICollectionViewCell?
    private var changeActions: [CollectionCoreDataChangeAction]!
    
