NullPointerException when using custom ExportViews on sorted tables -------------------------------------------------------------------
Key: DISPL-371 URL: http://jira.codehaus.org/browse/DISPL-371 Project: DisplayTag Type: Bug Components: Export Versions: 1.1 Reporter: Igor Friedrich Attachments: stack_trace.txt Im using a custom ExportView to export table data to a csv file. The export works fine when exporting from an unsorted table. When i sort the table before i start the export, then i get a NullPointerException. This problem appears only in the 1.1 version, the 1.0 works. I think the problem is that when using an custom ExportView, the describeEmptyTable method of the TableTag class creates HeaderCell objects (for all properties of a row bean) without setting the comparator property on them. As a result the comparator property of the HeaderCell objects is null which leads to a NullPointerException when exporting a sorted table. I think a possible solution for this problem would be to set the comparator property of a HeaderCell object to an DefaultComparator instance in the describeEmptyTable method. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel