You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
crashes on the last line with this error when retrieving a deleted document from CouchDB:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance
The cause appears to be that CouchQueryRow doesn't check to see if document is null before attempting to retrieve properties from it in this (and other) code in CouchQuery.m
It's not clear to me if the best fix is to patch the calls and add a deleted property to CouchQueryRow or if CouchQuery should not return this row in the first place.
The text was updated successfully, but these errors were encountered:
My code:
crashes on the last line with this error when retrieving a deleted document from CouchDB:
The cause appears to be that
CouchQueryRow
doesn't check to see ifdocument
isnull
before attempting to retrieve properties from it in this (and other) code inCouchQuery.m
The raw query retrieves rows for deleted documents even if
include_deleted
isfalse
:It's not clear to me if the best fix is to patch the calls and add a
deleted
property toCouchQueryRow
or ifCouchQuery
should not return this row in the first place.The text was updated successfully, but these errors were encountered: