mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Handle potential null reference for media type in scan method
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user