motion/cdq/object.rb in cdq-1.0.6 vs motion/cdq/object.rb in cdq-1.0.7

- old
+ new

@@ -65,10 +65,10 @@ end def find(oid) url = NSURL.URLWithString(oid) object_id = stores.current.managedObjectIDForURIRepresentation(url) - contexts.current.existingObjectWithID(object_id, error: nil) + object_id ? contexts.current.existingObjectWithID(object_id, error: nil) : nil end protected def with_error_object(default, &block)