You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable nullable reference types in MudBlazor.Docs project
Build Solution.
Debug output contains warnings \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(16,40,16,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(17,40,17,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(19,40,19,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(20,40,20,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(21,40,21,41): warning CS8602: Dereference of a possibly null reference.
...
Relevant log output
No response
Version (bug)
6.7.0
Version (working)
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge, Safari
On what operating system are you experiencing the issue?
Windows, Linux
Pull Request
I would like to do a Pull Request
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
o-khytrov
changed the title
Warning CS8602: Dereference of a possibly null reference. In MudDataGrid PropertyColumn
Warning CS8602: Dereference of a possibly null reference in MudDataGrid PropertyColumn
Jul 12, 2023
o-khytrov
changed the title
Warning CS8602: Dereference of a possibly null reference in MudDataGrid PropertyColumn
Warning CS8602: 'Dereference of a possibly null reference' in MudDataGrid PropertyColumn
Jul 12, 2023
Hi.
MudBlazor and its projects (such as the MudBlazor.Docs) have not been completely annotated with nullable safety yet. As a result, you may encounter warnings like above.
You can keep track on progress here #6535
Considering that there is already a primary issue, I will close this one.
Bug type
Component
Component name
MudDataGrid
What happened?
When a project is using nullable reference types
<Nullable>enable</Nullable>
, building a page with property column in MudDataGrid produces warningswarning CS8602: Dereference of a possibly null reference.
Expected behavior
The build is successful without warnings
Reproduction link
https://try.mudblazor.com/snippet/wkcxkBlczUeAshBC
Reproduction steps
\src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(16,40,16,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(17,40,17,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(19,40,19,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(20,40,20,41): warning CS8602: Dereference of a possibly null reference. \src\MudBlazor.Docs\Pages\Components\DataGrid\Examples\DataGridAdvancedExample.razor(21,40,21,41): warning CS8602: Dereference of a possibly null reference.
...
Relevant log output
No response
Version (bug)
6.7.0
Version (working)
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge, Safari
On what operating system are you experiencing the issue?
Windows, Linux
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: