diff options
author | Alain Béarez <abearez@apache.org> | 2021-01-19 21:33:38 +0000 |
---|---|---|
committer | Alain Béarez <abearez@apache.org> | 2021-01-19 21:33:38 +0000 |
commit | 825bebdbd198210211df8c0aec9e687fbb56abed (patch) | |
tree | edaf774602df6e0ae1a16088d7cb632d9b47c626 /src/ooxml/java/org | |
parent | 5de42f466f6aed8c61c7743186d18ee128e18823 (diff) | |
download | poi-825bebdbd198210211df8c0aec9e687fbb56abed.tar.gz poi-825bebdbd198210211df8c0aec9e687fbb56abed.zip |
Bug 65016 - Creating a chart throws exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885700 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSource.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSource.java b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSource.java index e6f085e807..439d0a325c 100644 --- a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSource.java +++ b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSource.java @@ -80,7 +80,9 @@ public interface XDDFDataSource<T> { } } if (effectiveNumOfPoints == 0) { - cache.unsetPtCount(); + if (cache.isSetPtCount()) { + cache.unsetPtCount(); + } } else { if (cache.isSetPtCount()) { cache.getPtCount().setVal(numOfPoints); |