https://issues.apache.org/bugzilla/show_bug.cgi?id=57362
Bug ID: 57362
Summary: Unable to get Chart Axis
Product: POI
Version: 3.10-FINAL
Hardware: PC
Status: NEW
Severity: critical
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
I have excel having chart with primary and secondary axis. I am to retrieve
the chart Axis details to update the maximum value.
I am having XSSFSheet instance after loading the given excel on which i am
retrieving drawing and chart as below:
final XSSFDrawing drawing = xsh.createDrawingPatriarch();
final XSSFChart chart = drawing.getCharts().get(0);
final List<XSSFChartAxis> axisList = (List<XSSFChartAxis>)
chart.getAxis();
While debugging, it seems that XSSFChart.getAxis() is not having null check on
axis variable and its not initialized. Its just checking the empty check. Which
is why its failing. axis is initialized in the constructor. However in this
case, its not initialized.
I think in this case it should not come as null or it should be initialized on
getAxis also.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]