Skip to content

Commit

Permalink
Fallback on empty cell if string value is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvo Isaja committed Feb 14, 2020
1 parent 5cb5afa commit c216e77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/LargeXlsx/LargeXlsx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.0.4</Version>
<Version>0.0.5</Version>
<Authors>Salvo Isaja</Authors>
<Company>Salvo Isaja</Company>
<Copyright>Copyright 2020 Salvatore Isaja</Copyright>
Expand Down
3 changes: 3 additions & 0 deletions src/LargeXlsx/LargeXlsxSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ public void Write(LargeXlsxStyle style)

public void Write(string value, LargeXlsxStyle style)
{
if (value == null)
Write(style);

EnsureRow();
CurrentColumnNumber++;
_worksheetWriter.WriteStartElement(CellElement, new[]
Expand Down

0 comments on commit c216e77

Please sign in to comment.