mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +00:00
fix: Fixed NullReferenceException when writing null strings to CSV
This commit is contained in:
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Performance improvements when working with xml attributes
|
- Performance improvements when working with xml attributes
|
||||||
|
- Fixed NullReferenceException when writing null strings to CSV
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Removed IcdXmlAttribute
|
- Removed IcdXmlAttribute
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ namespace ICD.Common.Utils.Csv
|
|||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public void AppendValue(string value)
|
public void AppendValue(string value)
|
||||||
{
|
{
|
||||||
|
value = value ?? string.Empty;
|
||||||
|
|
||||||
if (!m_NewLine)
|
if (!m_NewLine)
|
||||||
m_Writer.WrappedTextWriter.Write(m_Seperator);
|
m_Writer.WrappedTextWriter.Write(m_Seperator);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user