From: PJ Fanning Date: Sun, 1 Apr 2018 16:16:37 +0000 (+0000) Subject: [bug-62216] Fix issue with SXSSF error cells X-Git-Tag: REL_4_0_0_FINAL~210 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5fb333194d2e696dad9af84ef246715f0623cffa;p=poi.git [bug-62216] Fix issue with SXSSF error cells git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1828144 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java index 4e8310ea2c..af68d51827 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java @@ -511,7 +511,7 @@ public class SXSSFCell implements Cell { // populate the value ((ErrorFormulaValue) _value).setPreEvaluatedValue(value); } else { - ensureType(CellType.ERROR); + ensureTypeOrFormulaType(CellType.ERROR); ((ErrorValue) _value).setValue(value); } }