Skip to content

np (NullPropagation) throws NullReferenceException with methods #302

@NetMage

Description

@NetMage

If I have something like
np(Element(@0).Value)
or
np(qList.FirstOrDefault(Tag = "NAME").Value)

I get a NullReferenceException in ExpressionParser.GenerateConditional in /Parser/ExpressionParser.cs line 1207.

It works if I manually expand np to == null ? : null - is there a limitation to what np understands?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions