Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison to null object in query throws exception #1596

Closed
nirinchev opened this issue Oct 13, 2017 · 0 comments
Closed

Comparison to null object in query throws exception #1596

nirinchev opened this issue Oct 13, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@nirinchev
Copy link
Member

The following unit test fails with Data Type mismatch error:

[Test]
public void CheckObjectToNullComparison()
{
    _realm.Write(() =>
    {
        _realm.Add(new Owner
        {
            Name = "Ivar the Dogless"
        });
    });

    var result = _realm.All<Owner>()
                        .Where(x => x.TopDog == null)
                        .ToArray();
}
@nirinchev nirinchev added this to the 2017-44 milestone Oct 13, 2017
@nirinchev nirinchev self-assigned this Oct 13, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant