Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C53A1D2EC for ; Fri, 16 Nov 2012 14:52:14 +0000 (UTC) Received: (qmail 45910 invoked by uid 500); 16 Nov 2012 14:52:12 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 45828 invoked by uid 500); 16 Nov 2012 14:52:12 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 45806 invoked by uid 99); 16 Nov 2012 14:52:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 14:52:12 +0000 Date: Fri, 16 Nov 2012 14:52:11 +0000 (UTC) From: =?utf-8?Q?Jo=C3=A3o_Fernandes_=28JIRA=29?= To: flex-dev@incubator.apache.org Message-ID: <1208535365.123967.1353077532334.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (FLEX-33263) FocusOut in datagrid causes RTE if target.parent is null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jo=C3=A3o Fernandes created FLEX-33263: ------------------------------------- Summary: FocusOut in datagrid causes RTE if target.parent is n= ull Key: FLEX-33263 URL: https://issues.apache.org/jira/browse/FLEX-33263 Project: Apache Flex Issue Type: Bug Components: mx: DataGrid Affects Versions: Apache Flex 4.8 (parity release) Reporter: Jo=C3=A3o Fernandes during focusOutHandler, there is a condition that access target.parent.pare= nt without checking if target.parent is null or not. There is a quick fix by inverting the 2 last conditions so at line 5017 ins= tead of having if (target is IListItemRenderer && target.parent.parent =3D=3D this && targ= et.parent is ListBaseContentHolder) we should have if (target is IListItemRenderer && target.parent is ListBaseContentHolder &= & target.parent.parent =3D=3D this) this way, it will never throw an RTE because if target.parent is null, it w= ill never evaluate the last portion. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira