Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
b0bi79 opened this issue May 21, 2020 · 0 comments
Open

Comments

@b0bi79
Copy link

b0bi79 commented May 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant