Revision: 4220 http://vexi.svn.sourceforge.net/vexi/?rev=4220&view=rev Author: clrg Date: 2011-09-09 04:05:37 +0000 (Fri, 09 Sep 2011) Log Message: ----------- Fix - the vector may be empty
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/combo.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/combo.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/combo.t 2011-09-08 04:05:08 UTC (rev 4219) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/combo.t 2011-09-09 04:05:37 UTC (rev 4220) @@ -1,4 +1,4 @@ -<!-- Copyright 2009 - see COPYING for details [LGPL] --> +<!-- Copyright 2011 - see COPYING for details [LGPL] --> <vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib"> <meta:doc> @@ -95,7 +95,7 @@ } // FIXME: this is inefficient, to say the least var vec = list.members; - var item = vec.first; + var item = vec?.first; var match = text.toLowerCase(); var f = true; while (item!=null) { @@ -116,7 +116,7 @@ return; } var vec = list.members; - var item = vec.first; + var item = vec?.first; while (item!=null) { if (!item.ignorematch) { item.display = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn