Hi all
hi have a button rendered in a datatable that download a file.
Now the button is always present but the download may fail because the file is passe by a web service and i know that there is not file only when i call web service and not when i render the button.
Now when i click the button and the StreamedContent is null the page "explodes" ^^ and i get a bad nullpointer exception. Even if i use try catch statements...
There is something to return different from a null when there is no file?
Thanks
nullpointer exception on filedownload
-
- Information
-
Who is online
Users browsing this forum: No registered users and 49 guests