mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Date default should be null
This commit is contained in:
@@ -237,11 +237,10 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Rom()
|
public Rom()
|
||||||
{
|
{
|
||||||
Name = string.Empty;
|
Name = null;
|
||||||
ItemType = ItemType.Rom;
|
ItemType = ItemType.Rom;
|
||||||
DupeType = 0x00;
|
DupeType = 0x00;
|
||||||
ItemStatus = ItemStatus.None;
|
ItemStatus = ItemStatus.None;
|
||||||
Date = string.Empty;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ namespace SabreTools.Library.Tools
|
|||||||
/// <returns>Date as a string, if possible</returns>
|
/// <returns>Date as a string, if possible</returns>
|
||||||
public static string CleanDate(string input)
|
public static string CleanDate(string input)
|
||||||
{
|
{
|
||||||
|
// Null in, null out
|
||||||
|
if (input == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
string date = string.Empty;
|
string date = string.Empty;
|
||||||
if (input != null)
|
if (input != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user