Skip to content

BindingExpression.LeafNode throws if nodes list is empty #20441

@maxkatz6

Description

@maxkatz6

To Reproduce

A bit exotic one, but:

<TextBlock Text="{Binding Source='Elements', Converter={CasingConverter Upper}}" />

And then use BindingOperations.GetBindingExpressionBase and read BindingExpression.LeafNode or BindingExpression.Description

Expected behavior

BindingExpression.LeafNode is nullable, when nodes list is empty

Avalonia version

11.2.0

OS

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions