aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf/streaming
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2015-07-13 12:17:52 +0000
committerDominik Stadler <centic@apache.org>2015-07-13 12:17:52 +0000
commitbae4602fa69a72c8d3e3ee4ecf354cf9a72f7e91 (patch)
treeb2599ae12274736eb88682c447bdc7e75c0b6f44 /src/ooxml/java/org/apache/poi/xssf/streaming
parent1c69d7596cb247f4a786c0960369fd3c3631c918 (diff)
downloadpoi-bae4602fa69a72c8d3e3ee4ecf354cf9a72f7e91.tar.gz
poi-bae4602fa69a72c8d3e3ee4ecf354cf9a72f7e91.zip
Bug 58113: Fix regression: NullPointerException when setting cell value to null
add unit tests which verifies this for all three SS-implementations git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/streaming')
-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 7b67aa349d..b0d35803ba 100644
--- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
+++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
@@ -248,7 +248,7 @@ public class SXSSFCell implements Cell
{
ensureTypeOrFormulaType(CELL_TYPE_STRING);
- if(value.length() > SpreadsheetVersion.EXCEL2007.getMaxTextLength()){
+ if(value != null && value.length() > SpreadsheetVersion.EXCEL2007.getMaxTextLength()){
throw new IllegalArgumentException("The maximum length of cell contents (text) is 32,767 characters");
}