Skip to content

GetOrElse NullReferenceException #3564

@zbynek001

Description

@zbynek001

looks like there is possibility of NullReferenceException inside GetOrElse extension method, in case obj is null

if (obj.Equals(default(T)))

Did run into it when accessing ClusterReadView.Self.

Is that a bug? If so, I can prepare PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions