Table Export Addon

Hi Am using vaadin add on for table export , but amfacing following error

    ... 50 more

Caused by: java.lang.NullPointerException
at com.vaadin.addon.tableexport.TableExport.sendConvertedFileToUser(TableExport.java:92)
at com.vaadin.addon.tableexport.ExcelExport.sendConverted(ExcelExport.java:378)
at com.vaadin.addon.tableexport.TableExport.export(TableExport.java:68)

Can any one help me out with this please ??

Hi!

I’m not familiar with this addon, but as a wild guess after glancing at the source code, are you trying to do that from a background thread? Looks like your UI reference might be null. If not, you might want to ask on the add-on’s
own thread
, to make sure the author of the addon sees the question.

Hi Thanks for your reply , i got it resolved .

Yes you are right , we have to add compoents to UI , like table or other . if we not add them to UI then it will not recognise as UI elements .