]> source.dussan.org Git - poi.git/commitdiff
[bug-62216] Fix issue with SXSSF error cells
authorPJ Fanning <fanningpj@apache.org>
Sun, 1 Apr 2018 16:16:37 +0000 (16:16 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 1 Apr 2018 16:16:37 +0000 (16:16 +0000)
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

index 4e8310ea2c05d540190cb4b31c42039d80f2c0f5..af68d518278ade812b63d20455be7f97f94c9da1 100644 (file)
@@ -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);
         }
     }