minor code improvement

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-18 20:58:13 +00:00
parent ba08e1a46c
commit 646fb8c690
1 changed files with 2 additions and 2 deletions

View File

@ -72,9 +72,9 @@ public class XDDFDataSourcesFactory {
@Override @Override
public String getPointAt(int index) { public String getPointAt(int index) {
if (category.getPtArray().length <= index) { if (category.sizeOfPtArray() <= index) {
throw new IllegalArgumentException("Cannot access 0-based index " + 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(); return category.getPtArray(index).getV();
} }