Skip to content

Commit 8830dfe

Browse files
committed
Fix: If a footer is found to be null or undefined, Excel export could throw an error
https://datatables.net/forums/discussion/78306
1 parent 9e2d866 commit 8830dfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/buttons.html5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ function _excelColWidth(data, col) {
516516
var max = data.header[col].length;
517517
var len, lineSplit, str;
518518

519-
if (data.footer && data.footer[col].length > max) {
519+
if (data.footer && data.footer[col] && data.footer[col].length > max) {
520520
max = data.footer[col].length;
521521
}
522522

0 commit comments

Comments
 (0)