|
|
|
|
Re: Excel Export fires NullPointerException if file dialog is cancelled [message #972486 is a reply to message #972423] |
Mon, 05 November 2012 12:13  |
Eclipse User |
|
|
|
Hi Edwin, thanks!
Do you have a patch of the fix or a fast instruction to solve the bug?
In addition I noticed another errorneous behavior on export. Running the export a second time, an empty excel sheet is saved and the following exception is thrown:
java.lang.IllegalArgumentException: This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?
at org.apache.poi.hssf.usermodel.HSSFCellStyle.verifyBelongsToWorkbook(HSSFCellStyle.java:801)
at org.apache.poi.hssf.usermodel.HSSFCell.setCellStyle(HSSFCell.java:905)
at org.apache.poi.hssf.usermodel.HSSFCell.setCellStyle(HSSFCell.java:901)
at org.eclipse.nebula.widgets.nattable.extension.poi.PoiExcelExporter.exportCell(PoiExcelExporter.java:113)
at org.eclipse.nebula.widgets.nattable.export.NatExporter.exportLayer(NatExporter.java:167)
at org.eclipse.nebula.widgets.nattable.export.NatExporter$1.run(NatExporter.java:54)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
This bug is also reported in bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=390522
[Updated on: Tue, 06 November 2012 08:32] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03132 seconds