diff --git a/js/core/core.constructor.js b/js/core/core.constructor.js index 30e9f0c91..e3625ada3 100644 --- a/js/core/core.constructor.js +++ b/js/core/core.constructor.js @@ -270,6 +270,11 @@ else aoColumnsInit = oInit.aoColumns; } +if ( aoColumnsInit.length === 0 ) +{ + throw new Error("The table must contain a element with at least one column."); +} + /* Add the columns */ for ( i=0, iLen=aoColumnsInit.length ; i