Change 20100225-bargull-yMA by barg...@dell--p4--2-53 on 2010-02-25 00:16:01
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: clear URLLoader if load fails

Bugs Fixed: LPP-8789 (SWF9/10: Unhandled URLStream error)

Technical Reviewer: henry

Details:
If an error was thrown when calling URLLoader#load() in loadXMLDoc(), 
the "loader" member wasn't set to null. This led to a bug 
because the next time open() was called, the abort() function was 
invoked since there was still a "loader". abort() calls 
URLLoader#close(), but you are only allowed to call this function if 
there is an open stream. Setting the "loader" to null in the 
catch bug fixes this bug. I've also added a call to loadError() to 
inform the user about the error.
Additionally, I've removed the copied parts from the URLLoader docs 
(no longer necessary here), a few calls to trace() which were added 
initially to help implementing the data support for swf9.


Tests:
see bugreport

Files:
M WEB-INF/lps/lfc/kernel/swf9/LzHTTPLoader.as

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100225-bargull-yMA.tar

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

Reply via email to