Revision: 3919
          http://vexi.svn.sourceforge.net/vexi/?rev=3919&view=rev
Author:   jeffbuhrt
Date:     2010-10-17 00:21:26 +0000 (Sun, 17 Oct 2010)

Log Message:
-----------
Handle exception after surface cleanup

org.vexi.lib.text.field:
               148: exception: org.vexi.lib.text.edit:1733 Tried to get 
property "numchildren" from the null object
                     at org.vexi.lib.text.edit:1733
                     at org.vexi.lib.widget.textfield:168 (trap on text)
                     at org.vexi.lib.text.field:147 (trap on value)
                     at org.vexi.lib.role.focusmanager:173 (trap on focused)
                     at org.vexi.lib.role.clickable:89 (trap on _Release1)
                     at vexi.util.redirect:36 (trap on _Release1)

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2010-10-15 
13:28:24 UTC (rev 3918)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2010-10-17 
00:21:26 UTC (rev 3919)
@@ -1730,6 +1730,8 @@
             
             // special case for first line
             var b = thisbox[0];
+            if (b == null)
+               return;
             var n = b.numchildren;
             for (var j=0; n>j; j++) {
                 ret[++k] = b[j].text;


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

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to