Skip to content

NullReference exception in ReqlExpr #55

@oliverjanik

Description

@oliverjanik

You've got an override for == operator here:

    public static ReqlExpr operator ==(ReqlExpr a, ReqlExpr b)
    {
      return (ReqlExpr) a.eq((object) b);
    }

This throws when I do a comparison like this:

if (expr == null) ...

Got me very confused for a second. Can null be special cased here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions