You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/05/16 11:03:41 UTC

[Bug 56170] Exception when adding content to tables that have no headers

https://issues.apache.org/bugzilla/show_bug.cgi?id=56170

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
The actual point where the Cell contents becomes invalid is here:

CTRowImpl(XmlComplexContentImpl).arraySetterHelper(XmlObject[], QName) line:
1149    
CTRowImpl.setCArray(CTCell[]) line: not available    
XSSFRow.onDocumentWrite() line: 466    
XSSFSheet.write(OutputStream) line: 2761    
XSSFSheet.commit() line: 2725    
XSSFSheet(POIXMLDocumentPart).onSave(Set<PackagePart>) line: 322    
XSSFWorkbook(POIXMLDocumentPart).onSave(Set<PackagePart>) line: 326    
XSSFWorkbook(POIXMLDocument).write(OutputStream) line: 173    
XSSFTestDataSamples.writeOutAndReadBack(R) line: 68    
TestXSSFCell.test56170() line: 299    

Unfortunatly the XMLBeans framework is very picky about objects being used in
more than one place, sometimes setting objects to "invalid" if they are removed
from some collection, while we are still using it in other places. 

Your change basically just checks if the row or any cell inside it became
invalid by some prior action, so it is not a full fix, but just does not do
anything any more with the cell as soon as it becomes invalid.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org