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 Wed, 19 Mar 2014 09:31:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56170

--- Comment #1 from Yaniv Kunda <yaniv@kundas.net> ---
I've found the problem in XSSFTable.updateHeaders() while fixing bug #56274,
and found that adding row validation solves it, i.e. changing
if (row != null)
to
if (row != null && row.getCTRow().validate())

I've not included a patch, since I'm not sure it's ok to count on validate() to
check this - can invalid rows still be appropriate for being a table header
row?
In addition, validate() might be too heavy - but I didn't find any other way of
identifying what's wrong.

-- 
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