ravindersinghblujay / tableexport-for-vaadin

Automatically exported from code.google.com/p/tableexport-for-vaadin
0 stars 2 forks source link

NPE when exporting multiple tables #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I had a working example with just one table in the XLS file:

// create TableQuery, SQLContainer and Table which are shown on the UI
excelExport = new ExcelExport(table, title);
excelExport.setExportFileName(filename);
excelExport.setDisplayTotals(false);
excelEXport.export();

But when trying to add another sheet with data from another table, the export() 
call fails with NullPointerException at (TableExport.java:105)

// create TableQuery, SQLContainer and Table which are shown on the UI
excelExport = new ExcelExport(table, title);
excelExport.setExportFileName(filename);
excelExport.setDisplayTotals(false);
excelExport.convertTable();
// also create TableQuery, SQLContainer and Table not shown on the UI
excelExport.setNextTable(table2, title2);
excelExport.export();

What version of the product are you using? On what operating system?
TableExport 1.4.0, Vaaadin 7.1.0, Java 1.7.0

Original issue reported on code.google.com by rodrigo....@gmail.com on 28 Jan 2014 at 2:12