Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing a type error #1376

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading