flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Fernandes (JIRA) <j...@apache.org>
Subject [jira] [Created] (FLEX-33263) FocusOut in datagrid causes RTE if target.parent is null
Date Fri, 16 Nov 2012 14:52:11 GMT
João Fernandes created FLEX-33263:

             Summary: FocusOut in datagrid causes RTE if target.parent is null
                 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ão Fernandes

during focusOutHandler, there is a condition that access target.parent.parent without checking
if target.parent is null or not.
There is a quick fix by inverting the 2 last conditions so at line 5017 instead of having

if (target is IListItemRenderer && target.parent.parent == this && target.parent
is ListBaseContentHolder)

we should have

if (target is IListItemRenderer && target.parent is ListBaseContentHolder &&
target.parent.parent == this)

this way, it will never throw an RTE because if target.parent is null, it will never evaluate
the last portion.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message