mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Prevent trying to save null media tags, and report their presence to stderror.
This commit is contained in:
@@ -539,7 +539,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
sidecar = preSidecar;
|
||||
}
|
||||
|
||||
if(dev.IsUsb)
|
||||
if(dev.IsUsb && dev.UsbDescriptors != null)
|
||||
{
|
||||
dumpLog.WriteLine("Reading USB descriptors.");
|
||||
UpdateStatus?.Invoke("Reading USB descriptors.");
|
||||
@@ -559,7 +559,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
};
|
||||
}
|
||||
|
||||
if(dev.IsPcmcia)
|
||||
if(dev.IsPcmcia && dev.Cis != null)
|
||||
{
|
||||
dumpLog.WriteLine("Reading PCMCIA CIS.");
|
||||
UpdateStatus?.Invoke("Reading PCMCIA CIS.");
|
||||
|
||||
Reference in New Issue
Block a user