[DatFile, Disk, Rom] Make sure nulls are accounted for

This commit is contained in:
Matt Nadareski
2016-09-19 20:51:18 -07:00
parent 10b74ec550
commit 44b00f9f5a
3 changed files with 16 additions and 17 deletions

View File

@@ -60,8 +60,8 @@ namespace SabreTools.Helper
{
_name = name;
_itemType = ItemType.Disk;
_md5 = md5.ToLowerInvariant();
_sha1 = sha1.ToLowerInvariant();
_md5 = md5?.ToLowerInvariant();
_sha1 = sha1?.ToLowerInvariant();
_nodump = nodump;
}
@@ -94,8 +94,8 @@ namespace SabreTools.Helper
{
_name = name;
_itemType = ItemType.Disk;
_md5 = md5.ToLowerInvariant();
_sha1 = sha1.ToLowerInvariant();
_md5 = md5?.ToLowerInvariant();
_sha1 = sha1?.ToLowerInvariant();
_nodump = nodump;
_machineName = machineName;
_comment = comment;