gismofx / toast_ui.blazor_calendar

Toast UI Calendar Wrapper For Blazor
MIT License
54 stars 8 forks source link

Can't run test project #22

Closed Kistelekig98 closed 2 years ago

Kistelekig98 commented 2 years ago

When I try to run the test project, the following line throws an exception: TUICalendar.razor.cs:317

System.NullReferenceException: 'Object reference not set to an instance of an object.'
System.Collections.Generic.Queue<T>.Dequeue(...) returned null.

If I comment the whole OnParametersSetAsync() method, the program seems to run correctly.

gismofx commented 2 years ago

@Kistelekig98 Is this in debug or release mode?

If you try in release mode does it work?

gismofx commented 2 years ago

@Kistelekig98 This is the intended behavior and these should not give runtime errors. Null tasks could get added to the Queue in SetParametersAsync. This is the current design.

Debug mode will show the error, but you can continue the code. If you run in release mode, you won't get any null reference exceptions thrown as they are caught by the catch block.

Can you confirm on your end?

Kistelekig98 commented 2 years ago

@gismofx Yes, thanks.