-[UITableViewRowData isEqualToString:]: unrecognized selector sent to instance 0x391dce0
<p>I have a datatable which shows the list of contacts. when I start the application all the data is loaded correctly.But after selecting a contact, I am sometimes getting this exception :-</p>

<p><code>
Program received signal:  “EXC_BAD_ACCESS”.
</code>
and sometimes</p>

<p><code>
-[UITableViewRowData isEqualToString:]: unrecognized selector sent to instance 0x391dce0
</code></p>

<p>most probably for this code:-</p>

<p><code>
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {</p>

<pre><code>static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (cell == nil) {

    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];

}
ExpenseTrackerAppDelegate *appDelegate = (ExpenseTrackerAppDelegate *)[[UIApplication sharedApplication] delegate];
</code></pre>

<p>Person *person = (Person *)[appDelegate.expensivePersonsList objectAtIndex:indexPath.row];</p>

<p>NSString *name = [NSString stringWithFormat:@"%@ %@" ,person.lastName , person.firstName];</p>

<p>cell.textLabel.text = name;
    return cell;
}
</code></p>

<p>If I replace these lines of code</p>

<p><code>
NSString *name = [NSString stringWithFormat:@"%@ %@" ,person.lastName , person.firstName];
cell.textLabel.text = name;
</code></p>

<p>with this code 
<code>
  cell.textLabel.text = person.lastName;
</code></p>

<p>then everything works fine?</p>

<p>I dont know what exactly happens?
After looking and debugging around, i found that this code doesnt seem to work.
<code>
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {</p>

<pre><code>// RootViewController *detailViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:[NSBundle mainBundle]];
 PersonnalDetails *detailViewController = [[PersonnalDetails alloc] initWithNibName:@"PersonnalDetails" bundle:[NSBundle mainBundle]];
//detailViewController.view = [[UITableView alloc] initWithNibName:@"PersonnalDetails" bundle:[NSBundle mainBundle]];
 // ...
 // Pass the selected object to the new view controller.
    ExpenseTrackerAppDelegate *appDelegate = (ExpenseTrackerAppDelegate *)[[UIApplication sharedApplication] delegate];
NSInteger row = indexPath.row;
Person *person = [[appDelegate expensivePersonsList] objectAtIndex:row];
NSLog(@"%@", person.firstName);
  detailViewController.selectedPerson = person;
 [self.navigationController pushViewController:detailViewController animated:YES];
 [detailViewController release];
</code></pre>

<p>}
</code>
this line 
<code>
NSLog(@"%@", person.firstName);
</code>
 throws EXC_BAD_ACESS.
  I debugged  the code and the list <code>appDelegate expensivePersonsList</code> contains  objects. can anybody tell me the possible cause?</p>
