Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 30af159

Browse files
Merge pull request #21 from stesee/TextNullHandlingDuringLoad
null handling of Text during load
2 parents b2e64c2 + 2f1dd4a commit 30af159

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ClosedXML/Excel/XLWorkbook_Load.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ private void ParseCellValue(RstType element, XLCell xlCell)
19221922
}
19231923

19241924
if (!hasRuns)
1925-
xlCell.SetInternalCellValueString(XmlEncoder.DecodeString(element.Text.InnerText));
1925+
xlCell.SetInternalCellValueString(XmlEncoder.DecodeString(element.Text?.InnerText));
19261926

19271927
#region Load PhoneticProperties
19281928

@@ -3268,4 +3268,4 @@ private static Boolean GetBoolean(BooleanPropertyType property)
32683268
return false;
32693269
}
32703270
}
3271-
}
3271+
}

0 commit comments

Comments
 (0)