Tuukka Norri committed 7b22fca

Made fetching with the synchronized array controller a bit safer
- If the context's delegate calls array controller's fetch, the entity mightn't have been prepared earlier. Now it will be prepared if not set when fetching.

Comments (0)

Files changed (1)


 - (BOOL) fetchWithRequest: (NSFetchRequest *) fetchRequest merge: (BOOL) merge error: (NSError **) error
-	ExpectR (mEntityDescription, NO);
+	if (! mEntityDescription)
+		[self prepareEntity];
     BOOL retval = NO;
 	if (merge && nil != [self content])