Browse Source

SXSSFSheet: beware of null _writer

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879551 13f79535-47bb-0310-9956-ffa450edef68
tags/before_ooxml_3rd_edition
PJ Fanning 4 years ago
parent
commit
77ddd87605
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      build.gradle
  2. 1
    1
      src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java

+ 1
- 0
build.gradle View File

@@ -127,6 +127,7 @@ subprojects {
exclude '**/BaseTestCellUtil.class'
exclude '**/TestUnfixedBugs.class'
exclude '**/TestOneFile.class'
include '**/TestDeferredSXSSFWorkbook.class'

// Exclude Test Suites
exclude '**/All*Tests.class'

+ 1
- 1
src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java View File

@@ -1880,7 +1880,7 @@ public class SXSSFSheet implements Sheet
SXSSFRow row = _rows.get(firstRowNum);
// Update the best fit column widths for auto-sizing just before the rows are flushed
_autoSizeColumnTracker.updateColumnWidths(row);
_writer.writeRow(rowIndex, row);
if (_writer != null) _writer.writeRow(rowIndex, row);
_rows.remove(firstRowNum);
lastFlushedRowNumber = rowIndex;
}

Loading…
Cancel
Save