incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carol Frampton (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-33263) FocusOut in datagrid causes RTE if target.parent is null
Date Fri, 16 Nov 2012 15:30:12 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carol Frampton resolved FLEX-33263.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex Next

Author: cframpton
Date: Fri Nov 16 15:27:38 2012
New Revision: 1410394

URL: http://svn.apache.org/viewvc?rev=1410394&view=rev
Log:
FLEX-33263.  FocusOut in datagrid causes RTE if target.parent is null.  Commit patch submitted
by João Fernandes.

Modified:
    incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as

                
> 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
>            Assignee: Carol Frampton
>             Fix For: Apache Flex Next
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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

Mime
View raw message