NSManagedObject crash when initWIthEntity:insertIntoManagedObjectContext:
| Originator: | gabrielh | ||
| Number: | rdar://10589116 | Date Originated: | 15-Dec-2011 01:58 PM |
| Status: | Open | Resolved: | |
| Product: | IPhone SDK | Product Version: | 5.1 Beta 2 |
| Classification: | Crash | Reproducible: | Always |
Summary: Creating NSManagedObject with nil context crashes. This is a significant regression. [[NSManagedObject alloc] initWithEntity:entity insertIntoManagedObjectContext:nil] will crash with EXC_BAD_ACCESS. Steps to Reproduce: 1. Create NSManagedObject with initWithEntity:insertIntoManagedObjectContext: with nil context. Expected Results: Should create an object associated with no context. Actual Results: Crashes. Regression:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Response from Apple.
After further investigation it has been determined that this is a known issue, which is currently being investigated by engineering. This issue has been filed in our bug database under the original Bug ID# 10529343.