Skip to content

Commit

Permalink
several fixes and final client reset algo for collection in mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-cab committed Sep 26, 2023
1 parent d1e96be commit f5c6650
Show file tree
Hide file tree
Showing 4 changed files with 307 additions and 258 deletions.
3 changes: 0 additions & 3 deletions src/realm/obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2031,9 +2031,6 @@ CollectionPtr Obj::get_collection_by_stable_path(const StablePath& path) const
if (collection->get_collection_type() == CollectionType::List) {
auto list_of_mixed = dynamic_cast<Lst<Mixed>*>(collection.get());
size_t ndx = list_of_mixed->find_index(index);
if (ndx == realm::not_found) {
return {Mixed{}, PathElement{}}; // FIXME: test this
}
return {list_of_mixed->get(ndx), PathElement(ndx)};
}
else {
Expand Down
Loading

0 comments on commit f5c6650

Please sign in to comment.