Revision: 4418
          http://vexi.svn.sourceforge.net/vexi/?rev=4418&view=rev
Author:   clrg
Date:     2012-07-16 03:22:26 +0000 (Mon, 16 Jul 2012)
Log Message:
-----------
Fix exception typing first character in password textfields

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t        
2012-07-16 00:31:05 UTC (rev 4417)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t        
2012-07-16 03:22:26 UTC (rev 4418)
@@ -80,7 +80,10 @@
             if (v.length == 1) {
                 // insert single character
                 cascade = '*';
-                trapee.value = val.substring(0, cPos) + v + 
val.substring(cPos, val.length);
+                trapee.value =
+                    val==null or val==""
+                        ? v
+                        : val.substring(0, cPos) + v + val.substring(cPos, 
val.length);
             } else {
                 var val = trapee.value;
                 //vexi.trace(do_del+", "+cPos+", "+val+", "+text);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to