fix: Fixed NullReferenceException when writing null strings to CSV

This commit is contained in:
Chris Cameron
2018-11-09 16:08:25 -05:00
parent ef415bb20f
commit ad8fa216a5
2 changed files with 3 additions and 0 deletions

View File

@@ -79,6 +79,8 @@ namespace ICD.Common.Utils.Csv
[PublicAPI]
public void AppendValue(string value)
{
value = value ?? string.Empty;
if (!m_NewLine)
m_Writer.WrappedTextWriter.Write(m_Seperator);