aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-18 20:58:13 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-18 20:58:13 +0000
commit646fb8c69080d191256468168ce63e1d3cb81c2d (patch)
treec33f9d09c3f99e534c2184cbfa5fec91379903f9
parentba08e1a46c85c32531c1b5ae259e5a73f4654bfa (diff)
downloadpoi-646fb8c69080d191256468168ce63e1d3cb81c2d.tar.gz
poi-646fb8c69080d191256468168ce63e1d3cb81c2d.zip
minor code improvement
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894364 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java
index 722628b12d..68bcc84503 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java
@@ -72,9 +72,9 @@ public class XDDFDataSourcesFactory {
@Override
public String getPointAt(int index) {
- if (category.getPtArray().length <= index) {
+ if (category.sizeOfPtArray() <= index) {
throw new IllegalArgumentException("Cannot access 0-based index " + index +
- " in point-array with " + category.getPtArray().length + " items");
+ " in point-array with " + category.sizeOfPtArray() + " items");
}
return category.getPtArray(index).getV();
}