From 5fb333194d2e696dad9af84ef246715f0623cffa Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 1 Apr 2018 16:16:37 +0000 Subject: [PATCH] [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 --- src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5