Hi,
I have a DatePicker set for time use only and during the loading of the form I assign any existing times from my database as TimeSpans to the datepicker.
I use an event to simply get the time part of the date time and add that to the form data. This works really well.
Only issue is if the form loads with say 1 hour in the time picker and the user sets it to 0 hours and 0 minutes it throws a render exception. That said if a user sets it to 1 hour then back to 0 hours and 0 minutes without clicking save there is no exception. Odd.
I know its not my event as even if I delete the event this throws an exception.
Any help with resolving this would be great as currently its a bit of a showstopper
dotnet: warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Radzen.Blazor.RadzenDatePicker`1.OnChange()
at Radzen.Blazor.RadzenDatePicker`1.<BuildRenderTree>b__0_1(Double v)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Radzen.Blazor.RadzenNumeric`1.UpdateValueWithStep(Boolean stepUp)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
dotnet: fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'qHHxZMd7jV2A0V5H-3FcdQnmu4brrVbbtyDqROfd_EU'.
System.NullReferenceException: Object reference not set to an instance of an object.
at Radzen.Blazor.RadzenDatePicker`1.OnChange()
at Radzen.Blazor.RadzenDatePicker`1.<BuildRenderTree>b__0_1(Double v)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Radzen.Blazor.RadzenNumeric`1.UpdateValueWithStep(Boolean stepUp)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)