[Laszlo-checkins] r12481 - openlaszlo/trunk/WEB-INF/lps/lfc/controllers
bargull@openlaszlo.org
bargull at openlaszlo.org
Wed Jan 14 14:19:51 PST 2009
Author: bargull
Date: 2009-01-14 14:19:48 -0800 (Wed, 14 Jan 2009)
New Revision: 12481
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
Log:
Change 20090114-bargull-kuI by bargull at dell--p4--2-53 on 2009-01-14 23:18:22
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix nullptr exception in animator
New Features:
Bugs Fixed: LPP-7629
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
"actAnim" may be `null`, so test for that condition before dereferencing the pointer.
Tests:
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs 2009-01-14 22:18:51 UTC (rev 12480)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs 2009-01-14 22:19:48 UTC (rev 12481)
@@ -1,5 +1,5 @@
/**
- * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @affects animation lzanimatorgroup
@@ -451,8 +451,10 @@
*/
function __LZaddToStartTime (ptime:Number) :void {
this.startTime += ptime;
- for (var i:int = 0; i < this.actAnim.length; i++) {
- this.actAnim[ i ].__LZaddToStartTime(ptime);
+ if (this.actAnim) {
+ for (var i:int = 0; i < this.actAnim.length; i++) {
+ this.actAnim[ i ].__LZaddToStartTime(ptime);
+ }
}
}
More information about the Laszlo-checkins
mailing list