From 0ec274d46ec9844af52315ca431d89f2a8739d39 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 4e8310ea2..af68d5182 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); } }