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:
@@ -883,6 +883,12 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
|
||||
foreach(KeyValuePair<MediaTagType, byte[]> tag in mediaTags)
|
||||
{
|
||||
if(tag.Value is null)
|
||||
{
|
||||
DicConsole.ErrorWriteLine("Error: Tag type {0} is null, skipping...", tag.Key);
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = outputPlugin.WriteMediaTag(tag.Value, tag.Key);
|
||||
if(ret || force) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user