Fix when USB descriptors are null at sidecar creation after dump.

This commit is contained in:
2019-08-10 15:29:08 +01:00
parent 9064fe0e85
commit ffc20fb97b

View File

@@ -911,7 +911,7 @@ namespace DiscImageChef.Core.Devices.Dumping
// All USB flash drives report as removable, even if the media is not removable
if(!dev.IsRemovable || dev.IsUsb)
{
if(dev.IsUsb)
if(dev.IsUsb && dev.UsbDescriptors != null)
if(outputPlugin.SupportedMediaTags.Contains(MediaTagType.USB_Descriptors))
sidecar.BlockMedia[0].USB = new USBType
{