npoi
npoi copied to clipboard
XWPFTableRow.Copy() throws NullReferenceException
Every time I use Copy on XWPFTableRow it throws a NullReferenceException, but it doesn't show me which object is missing. I'm using 2.6.0
Example code:
XWPFTableRow testRow = new(new(), new(new(), new XWPFDocument()));
testRow.Copy();
What does new(new(), new(new(), new XWPFDocument())) exactly mean?
XWPFTableRow testRow = new XWPFTableRow(
new CT_Row(),
new XWPFTable(
new CT_Tbl(),
new XWPFDocument()
)
);
I've researched it and there is no such method in XWPFTableRow
class, only CloneRow()
exists, which is working fine. Seems Copy()
is just an extension method from NPOI.Util
. So, this issue can be closed as not a bug.