Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:59:56+00:00 2026-06-18T01:59:56+00:00

We have UITableViewController wich DataSource is a NSFetchedResultsController. After clicking on an object in

  • 0

We have UITableViewController wich DataSource is a NSFetchedResultsController. After clicking on an object in the UITableView you are directed to an UIViewController where you can set a flag (YES/NO) which possibly causes a delete from NSFetchedResultsController (NSPredicate):

  • Objects with flag: YES are shown in UITableView
  • Objects with flag: NO are NOT shown in UITableView

We update the object like following:

objectEntity updatedObject = self.oldobject;
[updatedObject setFlag: [NSNumber numberWithBool: NO]];

NSError *error;
[self.managedObjectContext save:&error];

Saving the updates causes following error:

CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification
*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] with user Info (null)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException'. reason: '*** -[_NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

Any ideas?

UPDATE:

The exception occurs in the NSFetchedResultsController delegate method

controller()didChangObject()atIndexPath... case: NSFetchedResultsChangeDelete tableView
deleteRowsAtIndexPaths:@[newIndexPath] withRowAnimation:UITableViewRowAnimationFade]; 

*** First throw call stack:
(0x334af2a3 0x3b1cc97f 0x333f934d 0x33407559 0x5e5e5 0x33326fe7 0x33400037 0x33d16599 0x332b4717 0x332b3c77 0x33235bf9 0x332a84cf 0x6174d 0x35478e1b 0x353a20c5 0x353a2077 0x353a2055 0x353a190b 0x353a1e01 0x352ca5f1 0x352b7801 0x352b711b 0x36fcd5a3 0x36fcd1d3 0x33484173 0x33484117 0x33482f99 0x333f5ebd 0x333f5d49 0x36fcc2eb 0x3530b301 0x20abd 0x3b603b20)
libc++abi.dylib: terminate called throwing an exception
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:59:57+00:00Added an answer on June 18, 2026 at 1:59 am

    In the NSFetchedResultsChangeDelete case of the FRC didChangeObject delegate method the index path of the deleted object is in indexPath, not in newIndexPath. So you should change

    [tableView deleteRowsAtIndexPaths:@[newIndexPath] withRowAnimation:UITableViewRowAnimationFade];
    

    to

    [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITableViewController that pushes a UIViewController using a UINavigationController: [self.navigationController pushViewController:detailViewController animated:YES];
I have an UITableViewController , set up so that users can delete rows. This
I have a UITableViewController with a subclass of UITableViewCell with a UITableView in each
I have a UITableviewController and I push another UIViewController in 'didSelectRow..' method. I have
I have a UITableViewController that displays cells that are just default. Each cell can
I have a UITableViewController. In viewDidLoad I set the rowHeight: self.tableView.rowHeight = 43; But
On iOS 5 I Have a UITableViewController set to Static Cells. I only need
I have a regular UITableViewController and a UITableView as its only view, and I
I have a UITableViewController that has a UITableView whose cells have a button attached
I have an UITableViewController which is backed by an NSFetchedResultsController. My NSFetchedResultsController put results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.