Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71D2E200BFD for ; Sun, 15 Jan 2017 10:55:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 705EC160B41; Sun, 15 Jan 2017 09:55:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B8732160B2B for ; Sun, 15 Jan 2017 10:55:20 +0100 (CET) Received: (qmail 41233 invoked by uid 500); 15 Jan 2017 09:55:19 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 41225 invoked by uid 99); 15 Jan 2017 09:55:19 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2017 09:55:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A93FEDFCAB; Sun, 15 Jan 2017 09:55:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: piotrz@apache.org To: commits@flex.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) archived-at: Sun, 15 Jan 2017 09:55:21 -0000 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 Authored: Sun Jan 15 10:55:16 2017 +0100 Committer: piotrz 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 {