Skip to content

Commit

Permalink
Fix MID-8878 csv export returning zero bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tchrapovic committed Sep 6, 2023
1 parent 2ed5b90 commit 2a429e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected String quoteValue(String value) {

@Override
protected <T> IModel<T> wrapModel(IModel<T> model) {
if (model.getObject() == null) {
if (model == null || model.getObject() == null) {
return () -> (T) "";
}
if (model.getObject() instanceof Referencable) {
Expand Down

0 comments on commit 2a429e2

Please sign in to comment.