Revision: 2018
http://vexi.svn.sourceforge.net/vexi/?rev=2018&view=rev
Author: clrg
Date: 2007-08-06 10:17:53 -0700 (Mon, 06 Aug 2007)
Log Message:
-----------
Protect tables from null data
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t
2007-08-06 13:50:45 UTC (rev 2017)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t
2007-08-06 17:17:53 UTC (rev 2018)
@@ -70,6 +70,7 @@
/** loads a set of data into the body of a table */
var loadDataFunc = function(data)
{
+ if (data == null) throw "tried to load null data";
var c = null;
var r = null;
var l = data.length;
@@ -119,7 +120,7 @@
count = vexi.math.min(rowcount-start, count);
var data = fetchData(start, count, sortby ?
th_head.indexof(sortby) : 0, sortasc);
startindex = start;
- loadData(data);
+ if (data) loadData(data);
//th_bodyover.y = vexi.math.floor((startprevi - startindex) * r);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn