Skip to content

Commit

Permalink
Fixes issue #1440 (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKallman committed May 13, 2024
1 parent b2e36d0 commit e8d4461
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EPPlus/Style/RichText/ExcelRichTextCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal ExcelRichTextCollection(ExcelRichTextCollection rtc, ExcelRangeBase cel
internal ExcelRichTextCollection(XmlReader xr, ExcelWorkbook wb)
{
_wb = wb;
while (xr.LocalName != "si" && xr.NodeType != XmlNodeType.EndElement)
while (xr.LocalName != "si" && xr.NodeType != XmlNodeType.EndElement && xr.EOF==false)
{
if (xr.LocalName == "r" && xr.NodeType == XmlNodeType.Element)
{
Expand Down
11 changes: 10 additions & 1 deletion src/EPPlusTest/Issues/PackageIssues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,14 @@ public void s593()
}
}
}
}
[TestMethod]
public void i1440()
{
using (ExcelPackage package = OpenTemplatePackage("i1440.xlsx"))
{
var ws = package.Workbook.Worksheets[0];
}
}

}
}

0 comments on commit e8d4461

Please sign in to comment.