Fix issue found by tests

This commit is contained in:
Matt Nadareski
2024-11-28 23:06:09 -05:00
parent 5ab3dded30
commit d9b1f5d45f

View File

@@ -52,12 +52,13 @@ namespace SabreTools.Serialization.Deserializers
}
}
// Set the records
mediaKeyBlock.Records = [.. records];
#endregion
return mediaKeyBlock;
// Set the records
if (records.Count > 0)
return new MediaKeyBlock { Records = [.. records ]};
return null;
}
catch
{