joelware / RoadKill

RoadKill iPhone app for reporting road kill
10 stars 2 forks source link

Creating SpeciesSelectionVC crashes if selectedCategoryString is not set #4

Open hickey opened 13 years ago

hickey commented 13 years ago

Attempted

- (IBAction) doSpecies:(id)sender {
     UIViewController *speciesCategorySelectionVC = [[SpeciesCategorySelectionVC alloc] initWithStyle:UITableViewStyleGrouped];
    [self.navigationController pushViewController:speciesCategorySelectionVC animated:YES];
    [speciesCategorySelectionVC release];
    //if (![[speciesButton titleForState:UIControlStateNormal] isEqualToString:@"Species"]) {
        UIViewController *speciesSelectionVC = [[SpeciesSelectionVC alloc] initWithNibName:@"SpeciesSelectionVC" bundle:nil];
        [self.navigationController pushViewController:speciesSelectionVC
                                             animated:YES];
        [speciesSelectionVC release];
    //}
}

Received the following exception:

Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
_Unwind_Resume called from function -[NSSQLAdapter _newSelectStatementWithFetchRequest:ignoreInheritance:] in image CoreData.
2010-12-01 00:18:51.821 RoadKill[44194:40b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid predicate: nil RHS'