Author: ptw
Date: 2007-07-17 06:00:17 -0700 (Tue, 17 Jul 2007)
New Revision: 5685

Modified:
   openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapath.lzs
Log:
Change 20070717-ptw-W by [EMAIL PROTECTED] on 2007-07-17 06:19:08 EDT
    in /Users/ptw/OpenLaszlo/legals-1
    for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary: Guard against null __LZdepChildren in LzDatapath destroy method

Bugs Fixed:
LPP-4299 'LzDatapath.destroy does not protect against null __LZdepChildren'

Technical Reviewer: hminsky (Message-ID: <[EMAIL PROTECTED]>)
QA Reviewer: [EMAIL PROTECTED] (pending)

Tests:
    Inspection



Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapath.lzs
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapath.lzs      
2007-07-17 10:34:54 UTC (rev 5684)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapath.lzs      
2007-07-17 13:00:17 UTC (rev 5685)
@@ -381,7 +381,8 @@
     //if immediate parent was deleted, don't worry about the datpaths dependent
     //on this one -- they'll be deleted too
     if ( ! this.immediateparent.__LZdeleted ){
-        if ( this.__LZdepChildren.length ){
+        if ( this.__LZdepChildren != null &&
+             this.__LZdepChildren.length ){
             //need to assign __LZdepChildren to parent
             var dnpar = this.immediateparent.searchParents( "datapath" ).
                                                                     datapath;


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to