poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59355] [PATCH] XSSFPivotTable throws NPE when adding a column Label
Date Tue, 19 Apr 2016 21:39:06 GMT

--- Comment #4 from Sherman Ying <idiotioc@gmail.com> ---
The bug that causes the NullPointerException is in
addDataField(DataConsolidateFunction function, int columnIndex, String
It incorrectly calculates the column for the corresponding header cell. Instead
of adding the column offset to the referenced area's first cell column index,
it only uses the column offset.

If the mis-referenced column cell is uninitialized (and the sheet
MissingCellPolicy is to return null), then it will throw a
NullPointerException. Another side-effect is that if there was a non-String
cell value in the mis-referenced cell, it will inadvertently change the cell
type to String.

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

View raw message