You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Libraries/DSOfficeUtilities/OpenXmlHelper.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -256,6 +256,10 @@ private static int GetLargestColumnIndex(SheetData sheetData)
256
256
foreach(varrowinsheetData.Elements<Row>())
257
257
{
258
258
varlastCell=row.LastChildasCell;
259
+
260
+
//When we have an empty row sometimes the Row.LastChild is null, so this validation will avoid the "Object reference not set to an instance of an object" error.
0 commit comments