anmcgrath / BlazorDatasheet

Simple excel-like datasheet Blazor component
MIT License
131 stars 31 forks source link

throw on blazor server due to null #43

Closed jasonswearingen closed 1 year ago

jasonswearingen commented 1 year ago

if you add a new row on blazor server (main example), it will crash at this line because val is null.

blazor wasm's runtime seems to not consider it actually null so it doesn't throw.

ps: I have been tracking your project for a couple mths now, finally I learned blazor enough to try it out today!

anmcgrath commented 1 year ago

Thanks for the PR @jasonswearingen. I couldn't reproduce the crash on Blazor Server, but agree that there should be a null check on this value.