Skip to content

text-entry throws System.NullReferenceException when For value is null #81

@b0bi79

Description

@b0bi79

My template is:

@model NSysWebTest.Web.ViewModels.Products.ProductCategoryViewModel
<text-entry id="Name" label-text="Name" for="Name"></text-entry>
<text-entry id="Note" label-text="Note" for="Note"></text-entry>

Template model ProductCategoryViewModel is

new ProductCategoryViewModel{
    Name = "Test",
    Note = null
};

I'm getting an error System.NullReferenceException while rendering a template on a line with Note

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions