flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yish...@apache.org
Subject [1/2] git commit: [flex-asjs] [refs/heads/develop] - Avoid null pointer exception.
Date Wed, 18 Jan 2017 07:44:18 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 8529f5e0c -> 6d42dd9c1


Avoid null pointer exception.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a85a6562
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a85a6562
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a85a6562

Branch: refs/heads/develop
Commit: a85a65629ba1a7d0ff10717be684c94705e8eb60
Parents: e54023e
Author: yishayw <yishayjobs@hotmail.com>
Authored: Wed Jan 18 09:42:24 2017 +0200
Committer: yishayw <yishayjobs@hotmail.com>
Committed: Wed Jan 18 09:42:24 2017 +0200

----------------------------------------------------------------------
 .../Effects/src/main/flex/org/apache/flex/effects/Parallel.as      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a85a6562/frameworks/projects/Effects/src/main/flex/org/apache/flex/effects/Parallel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/src/main/flex/org/apache/flex/effects/Parallel.as
b/frameworks/projects/Effects/src/main/flex/org/apache/flex/effects/Parallel.as
index 4a2bdd6..ea68f2d 100644
--- a/frameworks/projects/Effects/src/main/flex/org/apache/flex/effects/Parallel.as
+++ b/frameworks/projects/Effects/src/main/flex/org/apache/flex/effects/Parallel.as
@@ -93,7 +93,7 @@ public class Parallel extends Effect implements IDocument
      */
     override public function set duration(value:Number):void
     {
-        var n:int = children.length;
+        var n:int = children ? children.length : 0;
         for (var i:int = 0; i < n; i++)
         {
             children[i].duration = value;


Mime
View raw message