title: CoreData: No existing entry for row 0 but for row 1,2,3
body: <p>I made an CoreData app which also includes an UITableView. The app loads all CoreData entries into the UITableViewCells at startup. I saved 5 entries into CoreData (of type String). If each UITableViewCell is going to be filled with the correct entries at <code>cellForRowAtIndexPath</code> there's no entry (nil) at <code>indexPath.row: 0</code> but at row 1,2,3,4 and 5 there's an existing entry. I don't know why but each time if the cell with the <code>indexPath.row = 0</code> loads the app crashes with the reason: <code>fatal error: unexpectedly found nil while unwrapping an Optional value</code>. The <code>optional value</code> is an attribute of an entity of my core data model. Does someone knows why this error occurs each time if <code>indexPath.row = 0</code>? If you need more informations feel free to ask me. Thanks a lot for your help.</p>
  
  <p>Get value:</p>
  
  <pre><code>let object = self.fetchedResultsController.objectAtIndexPath(indexPath) as NSManagedObject
  var dateFromCell = object.valueForKey("datum") as NSDate?
  var dateString = Date.toString(date: dateFromCell!)
  </code></pre>
  
  <p>Save value:</p>
  
  <pre><code>let myDate:NSDate = NSDate()
  let context = self.fetchedResultsController.managedObjectContext
  let entity = self.fetchedResultsController.fetchRequest.entity!
  let newManagedObject = NSEntityDescription.insertNewObjectForEntityForName(entity.name!, inManagedObjectContext: context) as NSManagedObject
  newManagedObject.setValue(myDate, forKey: "datum")
  
  // Save the context.
      var error: NSError? = nil
      if !context.save(&amp;error) {
          abort()
      }
  </code></pre>