You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Mihai Chira (JIRA)" <ji...@apache.org> on 2016/02/13 17:14:18 UTC

[jira] [Updated] (FLEX-33058) RTE in HierarchicalCollectionViewCursor when a refresh occurs and old cursor had an enumerable property that new cursor item doesn't

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

Mihai Chira updated FLEX-33058:
-------------------------------
    Component/s: Advanced Data Grid

> RTE in HierarchicalCollectionViewCursor when a refresh occurs and old cursor had an enumerable property that new cursor item doesn't
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33058
>                 URL: https://issues.apache.org/jira/browse/FLEX-33058
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid, SuperCollections
>    Affects Versions: Adobe Flex SDK 4.5 (Release), Apache Flex 4.15.0
>         Environment: Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Mihai Chira
>
> Steps to reproduce:
> 1.  Run test app
> 2.  Click button to change HierarchicalData's source
>  
>  Actual Results:
>  
>  ReferenceError: Error #1069: Property mx_internal_uid not found on ASObject1 and there is no default value.
> 	at mx.collections::HierarchicalCollectionViewCursor/findAny()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionViewCursor.as:327]
> 	at mx.collections::HierarchicalCollectionViewCursor/findFirst()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionViewCursor.as:356]
> 	at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionViewCursor.as:1315]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.collections::HierarchicalCollectionView/internalRefresh()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionView.as:1248]
> 	at mx.collections::HierarchicalCollectionView/collectionChangeHandler()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionView.as:1439]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.collections::HierarchicalData/set source()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalData.as:145]
> 	at HCVCBug/button1_clickHandler()[C:\Users\asus\Adobe Flash Builder 4.5\HCVCBug\src\HCVCBug.mxml:46]
> 	at HCVCBug/___HCVCBug_Button1_click()[C:\Users\asus\Adobe Flash Builder 4.5\HCVCBug\src\HCVCBug.mxml:53]
>  Expected Results:
>  
> No RTE :-)
>  
>  Workaround (if any):
> Monkey-patch HierarchicalCollectionViewCursor and update findAny() to use (monkey-patch file is included in sample project if you rename it from HierarchicalCollectionViewCursor2.as to HierarchicalCollectionViewCursor.as):
> for (var p:String in values)
> {
>     if (!o.hasOwnProperty(p) || o[p] != values[p])
>     {
>         matches = false;
>         break;
>     }
> }
> instead of:
> for (var p:String in values)
> {
>     if (o[p] != values[p])
>     {
>         matches = false;
>         break;
>     }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)