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
sortingMayHaveChanged and filteringMayHaveChanged are NO because the parent view is sorted and filtered by object, so object variable is nil. This object variable is passed to _handleChangeWithRowid.
In the method _handleChangeWithRowid, filteringMayHaveChanged is NO because parent view is filtered by object, and passesFilter is set to YES in the line 834. The filtered view extension will then insert row:
I replace metadata by using replaceMetadata method.
In the method
handleReplaceMetadata
ofYapDatabaseFilteredViewTransaction
, I found this code (https://github.com/yapstudios/YapDatabase/blob/master/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.m#L1005-L1018):sortingMayHaveChanged
andfilteringMayHaveChanged
are NO because the parent view is sorted and filtered by object, soobject
variable is nil. This object variable is passed to_handleChangeWithRowid
.In the method
_handleChangeWithRowid
,filteringMayHaveChanged
is NO because parent view is filtered by object, andpassesFilter
is set to YES in the line 834. The filtered view extension will then insert row:At this point,
object
is nil because it is not get in the code above. And in methodinsertRowid
, thesortingBlock
is called with the first object is nil (https://github.com/yapstudios/YapDatabase/blob/master/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.m#L1883-L1896).object1
andobject2
should not be nil in a sorting block, right?Thanks.
The text was updated successfully, but these errors were encountered: