Core data app is crashing while perform fetch request
<p>I am fetching result from core data entity </p>

<pre><code>- (NSFetchedResultsController *)fetchedResultsController {

    if (fetchedResultsController != nil) {
        return fetchedResultsController;
    }

    // Set up the fetched results controller.

    // Create the fetch request for the entity.
    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
    // Edit the entity name as appropriate.
    NSEntityDescription *entity = [NSEntityDescription entityForName:@"Tutorial" inManagedObjectContext:managedObjectContext];
    [fetchRequest setEntity:entity];

    // Set the batch size to a suitable number.
    [fetchRequest setFetchBatchSize:20];

    // Edit the sort key as appropriate.
    NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"id" ascending:YES];
    NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];


    //sorting 
    [fetchRequest setSortDescriptors:sortDescriptors];

    NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:managedObjectContext sectionNameKeyPath:nil cacheName:@"Root"];
    aFetchedResultsController.delegate = self;
    self.fetchedResultsController = aFetchedResultsController;

    //release here
    [aFetchedResultsController release];
    [fetchRequest release];
    [sortDescriptor release];
    [sortDescriptors release];

    return fetchedResultsController;
}
</code></pre>

<p>My app is crashing while perform fetch </p>

<pre><code>- (void)viewDidLoad
{
    [super viewDidLoad];

    //title


    self.navigationItem.leftBarButtonItem = self.editButtonItem;
    //add song button



    UIBarButtonItem *addSongbutton = [[UIBarButtonItem alloc] initWithTitle:@"Add Songs" style:UIBarButtonItemStyleBordered target:self action:@selector(addSongs)];
    self.navigationItem.rightBarButtonItem = addSongbutton;

    [addSongbutton release];

    if (managedObjectContext == nil) {
        managedObjectContext = [(SongsWithLyricsAppDelegate *)[[UIApplication sharedApplication]delegate]managedObjectContext];
    }

    self.title = @"Song List";

    //Error message
    NSError *error =nil;
    if (![[self fetchedResultController]performFetch:&amp;error]) {
        NSLog(@"Unresolved error %@, %@", error, [error userInfo]);

        abort();

    }




}
</code></pre>

<p>this is Nslog output
Unresolved error (null), (null)<br>
please help</p>
