[GUI] Handle potential null reference for media type in scan method

This commit is contained in:
2025-11-20 02:28:07 +00:00
parent 227adeb092
commit c1ddebe52c

View File

@@ -1021,7 +1021,7 @@ public partial class DeviceViewModel : ViewModelBase
async Task ScanAsync()
{
switch(_mediaInfo.MediaType)
switch(_mediaInfo?.MediaType)
{
// TODO: GD-ROM
case CommonTypes.MediaType.GDR: