aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java2
1 files changed, 1 insertions, 1 deletions
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);
}
}