title: NSPredicate crash
body: <p>In searchBar, I have the following code</p>
  
  <pre>
  - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
  {
      [searchBar resignFirstResponder];
      self.filteredResults = [[NSMutableArray alloc] init];
      NSPredicate* predicate = [NSPredicate predicateWithFormat:@"(%K == %@)", field1, field2];
      self.filteredResults = (NSMutableArray *)[originalArray filteredArrayUsingPredicate:predicate];
  }
  </pre>
  
  <p>EDIT:</p>
  
  <pre>
  - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
  {
      originalArray = [[NSArray alloc] initWithContentsOfFile:path];
      return YES;
  }
  </pre>
  
  <p>On the second time I run the predicate, the program crashes at the assignment of <code>self.fiteredResults</code> in the <code>searchBarSearchButtonClicked:searchBar</code> message. If I include <code>[self.filteredResults removeAllObjects]</code> then the program crashes there, so it was removed, and still it will not function on the second time the search is performed. Does anything in this code stand out to cause the crash or should I be looking elsewhere? Thanks in advance.</p>