flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - - Handle case where getterFunction faile due tu some null property inside - return null in value in that case
Date Sun, 15 Jan 2017 09:55:19 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop dbdede126 -> 955e79f8f


- Handle case where getterFunction faile due tu some null property inside - return null in
value in that case


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

Branch: refs/heads/develop
Commit: 955e79f8fbb40106fe7706925496720dc192be45
Parents: dbdede1
Author: piotrz <piotrz@apache.org>
Authored: Sun Jan 15 10:55:16 2017 +0100
Committer: piotrz <piotrz@apache.org>
Committed: Sun Jan 15 10:55:16 2017 +0100

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/binding/PropertyWatcher.as    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/955e79f8/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as
b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as
index d6e7fef..5f286d2 100644
--- a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as
+++ b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as
@@ -238,7 +238,14 @@ package org.apache.flex.binding
                 {
                     if (getterFunction != null)
                     {
-                        value = getterFunction.apply(document, [ propertyName ]);
+                        try
+                        {
+                            value = getterFunction.apply(document, [ propertyName ]);
+                        }
+                        catch (e:Error)
+                        {
+                            value = null;
+                        }
                     }
                     else
                     {


Mime
View raw message