poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56170] Exception when adding content to tables that have no headers
Date Fri, 16 May 2014 09:03:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56170

--- Comment #2 from Dominik Stadler <dominik.stadler@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


Mime
View raw message