1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Fix: When invalidating data source, check the cells exist first

- Fixes the issue highlighted in thread 19822
This commit is contained in:
Allan Jardine 2014-03-05 16:54:56 +00:00
parent ccc4f99c54
commit 6a568a7542
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
6cf06ac317bed3f66765071a5e9081dc570a80a5
3034e3ba43fcfd7bb6ae6d95e566d9eca284c35a

View File

@ -1382,8 +1382,10 @@
// Reading from data object, update the DOM
var cells = row.anCells;
for ( i=0, ien=cells.length ; i<ien ; i++ ) {
cells[i].innerHTML = _fnGetCellData( settings, rowIdx, i, 'display' );
if ( cells ) {
for ( i=0, ien=cells.length ; i<ien ; i++ ) {
cells[i].innerHTML = _fnGetCellData( settings, rowIdx, i, 'display' );
}
}
}