Skip to content

Commit

Permalink
fix(demo): fix NPE when exporting headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mlopezFC authored and paodb committed Feb 27, 2024
1 parent 183882f commit d501e44
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public GridExporterSimpleCustomTemplateDemo() throws EncryptedDocumentException,
exporter.setCsvExportEnabled(false);
exporter.setNumberColumnFormat(minBudgetColumn, "$#.###,##");
exporter.setNumberColumnFormat(maxBudgetColumn, decimalFormat, "$#,###.##");
exporter.setNumberColumnFormatProvider(quantityColumn, decimalFormat, (person)->person.getBudget()>50000?"#,###.## \"kg\"":"#,###.## \"l\"");
exporter.setNumberColumnFormatProvider(quantityColumn, decimalFormat, (person)->person==null?"":
person.getBudget()>50000?"#,###.## \"kg\"":"#,###.## \"l\"");
exporter.setDateColumnFormat(dateColumn1, "dd/MM/yyyy");
exporter.setDateColumnFormat(dateColumn2, new SimpleDateFormat("dd/MM/yyyy"), "dd/MM/yyyy");
exporter.setFileName(
Expand Down

0 comments on commit d501e44

Please sign in to comment.