Skip to content

Commit 9223f19

Browse files
committed
Fix an issue where the persistentContainer ivar isn't set
1 parent 0129a95 commit 9223f19

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

WordPress/Classes/Utility/ContextManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ - (NSPersistentContainer *)persistentContainer
232232

233233
// Initialize the container
234234
NSPersistentContainer *persistentContainer = [[NSPersistentContainer alloc] initWithName:@"WordPress" managedObjectModel:self.managedObjectModel];
235+
_persistentContainer = persistentContainer;
235236
persistentContainer.persistentStoreDescriptions = @[self.storeDescription];
236237
[persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *description, NSError *error) {
237238
if (error != nil) {

0 commit comments

Comments
 (0)