Changeset 7995


Ignore:
Timestamp:
Aug 9, 2021, 1:33:13 PM (10 months ago)
Author:
Nicklas Nordborg
Message:

References #2256: Upgrade 3-rd part libraries

Fixes a NullPointerException that was introduced in [7975].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/util/excel/XlsxToCsvUtil.java

    r7975 r7995  
    381381      this.sheet = sheet;
    382382      this.dataFormat = new DataFormatter();
    383       this.formulaEval = evaluateFormulas ? workbook.getCreationHelper().createFormulaEvaluator() : null;
    384       formulaEval.setIgnoreMissingWorkbooks(true);
     383      if (evaluateFormulas)
     384      {
     385        this.formulaEval = workbook.getCreationHelper().createFormulaEvaluator();
     386        formulaEval.setIgnoreMissingWorkbooks(true);
     387      }
     388      else
     389      {
     390        this.formulaEval = null;
     391      }
    385392     
    386393      this.firstRow = sheet.getFirstRowNum();
Note: See TracChangeset for help on using the changeset viewer.