question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Datatable: Exporter issue with NULL DisplayPriority

See original GitHub issue

@melloware with the revision 572eaeee2c75fa901fb450c503b88d5912aa1ff6 from April 22, 17:39 the datatable exporter is not working anymore. the following NPE is thrown:

java.lang.NullPointerException
	at java.util.Comparator.lambda$comparingInt$7b0bb60$1(Comparator.java:490)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.util.TimSort.sort(TimSort.java:220)
	at java.util.Arrays.sort(Arrays.java:1512)
	at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.primefaces.component.export.TableExporter.getExportableColumns(TableExporter.java:98)
	at org.primefaces.component.datatable.export.DataTableCSVExporter.addColumnFacets(DataTableCSVExporter.java:111)
	at org.primefaces.component.datatable.export.DataTableCSVExporter.doExport(DataTableCSVExporter.java:73)
	at org.primefaces.component.datatable.export.DataTableExporter$DataTableVisitCallBack.visit(DataTableExporter.java:250)
	at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:127)
	at org.primefaces.component.api.UIData.visitTree(UIData.java:691)
	at org.primefaces.component.datatable.export.DataTableExporter$DataTableVisitCallBack.lambda$invoke$0(DataTableExporter.java:269)
	at org.primefaces.util.ComponentUtils.invokeOnClosestIteratorParent(ComponentUtils.java:546)
	at org.primefaces.component.datatable.export.DataTableExporter$DataTableVisitCallBack.invoke(DataTableExporter.java:267)
	at org.primefaces.component.datatable.export.DataTableExporter.export(DataTableExporter.java:211)
	at org.primefaces.component.export.DataExporter.processAction(DataExporter.java:159)

i hope that you have an idea what has been broken here. many thanks in advance for fixing.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
tuerkercommented, May 20, 2021

many thanks. it now works again.

0reactions
mellowarecommented, May 20, 2021

Excellent thanks for testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Null cells values when exporting to Excel — DataTables forums
Hi, this is my first question here, i hope you could help me. When exporting to excel cells starting with 9E goes to...
Read more >
DataExporter: columnToggler breaks export ordering #8031
here i need to provide a reproducer since the show case which invokes the exporter with a commandButton outside of the datatable seems...
Read more >
Datatables: Export Excel Formatting - Stack Overflow
One of my columns contain a decimal point and displays OK when viewed in the browser as a table. When I export the...
Read more >
SQLite Order By - Sorting Result Set in Various Orders
However, both of these values do not clearly show that the birthday is unknown. NULL was invented to resolve this issue. Instead of...
Read more >
Setting a GlideRecord variable to null - ServiceNow Docs
The object displays the initial value until it is called again from the record. Note: Functionality described here requires the Admin role.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found