Skip to content

Commit

Permalink
Merge pull request #1376 from tohidemyname/fixTypeError
Browse files Browse the repository at this point in the history
fixing a type error
  • Loading branch information
tonyqus authored Sep 22, 2024
2 parents 7f8944b + e414f4a commit fb2775a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions main/HSSF/Record/TextObjectRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public TextObjectRecord(RecordInputStream in1)
throw new RecordFormatException("Read " + ptgs.Length
+ " tokens but expected exactly 1");
}
if(!(ptgs[0] is OperandPtg)) {
throw new ArgumentException("Had unexpected type of ptg at index 0: " + ptgs[0].GetType());
}
_linkRefPtg = (OperandPtg)ptgs[0];
if (in1.Remaining > 0)
{
Expand Down
4 changes: 2 additions & 2 deletions testcases/ooxml/SS/Converter/TestExcelToHtmlConverterSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ public class TestExcelToHtmlConverterSuite
private static List<String> failingFiles = new List<string>();

[Test]
[Ignore("test")]

public void TestExcelToHtmlConverter()
{
string[] fileNames = POIDataSamples.GetSpreadSheetInstance().GetFiles("*.xls");
List<string> toConverter = new List<string>();
StringBuilder stringBuilder = new StringBuilder();
foreach (string filename in fileNames)
{
if (filename.EndsWith(".xls"))
if (filename.EndsWith("clusterfuzz-testcase-minimized-POIHSSFFuzzer-6322470200934400.xls"))
toConverter.Add(filename);
else
continue;
Expand Down
Binary file not shown.

0 comments on commit fb2775a

Please sign in to comment.