10000 Crash when invoking .count() on an empty results · Issue #6443 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Crash when invoking .count() on an empty results #6443
Closed
@nirinchev

Description

@nirinchev

When you construct an empty (unbacked) results instance (

// A default-constructed Results which is backed by nothing. This
// behaves as if it was backed by an empty table/collection, and is
// inteded for read-only Realms which are missing tables.
Empty,
) and then invoke count on the query obtained from the results, we get a crash when trying to obtain the logger in
auto logger = m_table->get_logger();
.

The test I have is a C# one, but it roughly does:

Results = {};
results.set_update_policy(Results::UpdatePolicy::Never);

results.get_query().count(results.get_descriptor_ordering());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0