(From my comment:) The error message has nothing to do with the predicate.
It tells you that the NSManagedObjectContext
is nil
.
A possible problem could be the MR_contextForCurrentThread
method
which is deprecated
and should not be used anymore. The reason is that it assumes a unique thread for each
managed object context. This is no longer true with the new MOC concurrency types which
run on GCD queues.
Compare https://stackoverflow.com/a/20536335/1187415.
Better use MR_defaultContext
or pass the context from one view controller to the next.