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 2017/01/12 12:30:59 UTC

[jira] [Resolved] (FLEX-27509) AdvancedListBase itemMaskFreeList is null

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

Mihai Chira resolved FLEX-27509.
--------------------------------
    Resolution: Fixed

> AdvancedListBase itemMaskFreeList is null
> -----------------------------------------
>
>                 Key: FLEX-27509
>                 URL: https://issues.apache.org/jira/browse/FLEX-27509
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid, mx: DataGrid
>    Affects Versions: Adobe Flex SDK 3.5 (Release), Apache Flex 4.15.0
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Internet Explorer 8.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Mihai Chira
>             Fix For: Apache Flex 4.17.0
>
>         Attachments: Reproduce FLEX-27509.avi
>
>
> Steps to reproduce:
> 1.This bug is in a complex proprietary system, so I am unable to post the whole code or easily come up with a simpler system to reproduce. (Is remote debugging a possibility?) However, I do have a call stack of the crash.
> Actual Results:
>         Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)       	
>         mx.controls.listClasses::AdvancedListBase/http://www.adobe.com/2006/flex/mx/internal::removeClipMask       	
>         mx.controls.listClasses::AdvancedListBase/updateList       	
>         mx.controls.listClasses::AdvancedListBase/setSelectionDataLoop       	
>        	mx.controls.listClasses::AdvancedListBase/commitSelectedItems       	
>        	mx.controls.listClasses::AdvancedListBase/commitSelectedItem       	
>        	mx.controls.listClasses::AdvancedListBase/set selectedItem       	
>        	com.connect3.proofing.views::CommentList/selectComment       	
>        	com.connect3.proofing.views::CommentList/updateCompleteDG       	
>        	com.connect3.proofing.views::CommentList/__dgComment_updateComplete       	
>        	flash.events::EventDispatcher/dispatchEventFunction [no source]       	
>        	flash.events::EventDispatcher/dispatchEvent [no source]       	
>        	mx.core::UIComponent/dispatchEvent       	
>        	mx.managers::LayoutManager/doPhasedInstantiation       	
>        	Function/http://adobe.com/AS3/2006/builtin::apply [no source]       	
>        	mx.core::UIComponent/callLaterDispatcher2       	
>        	mx.core::UIComponent/callLaterDispatcher       	
>        	flash.utils::Timer/_timerDispatch [no source]       	
>        	flash.utils::Timer/tick [no source]       	
>        	The error is in AdvancedListBase.removeClipMask line 5174. itemMaskFreeList is null.
>        	This is the code for CommentList.selectComment, where dpHierarchy is 
>        	       	[Bindable] private var dpHierarchy:HierarchicalData;
>        	       	<mx:AdvancedDataGrid updateComplete="updateCompleteDG(event)" defaultLeafIcon="{null}" x="0" y="22" width="100%" height="100%" id="dgComment" 
>        	       	       	variableRowHeight="true" verticalGridLines="false" sortExpertMode="true" useRollOver="false" 
>        	       	       	folderOpenIcon="{null}" folderClosedIcon="{null}" sortItemRenderer="com.connect3.proofing.renderers.SortItemRenderer"
>        	       	       	horizontalScrollPolicy="auto"> ... </mx:AdvancedDataGrid>
>        	       	dgComment.dataProvider = dpHierarchy;
>        	       	public function selectComment(userCommentID:int):void {                  	       	
>               	       	       	var commentList:ArrayCollection = ArrayCollection(dpHierarchy.source);
>                  	       	
>               	       	       	for(var i:int=0; i<commentList.length; i++){       	       	       	       	
>        	       	       	       	var comment:Object = commentList.getItemAt(i);
>        	       	       	       	       	
>        	       	       	       	if (comment.userCommentID == userCommentID) {
>        	       	       	       	       	dgComment.selectedItem = comment;
>        	       	       	       	       	//go to "selectedIndex" rather than simply i, because
>        	       	       	       	       	//when children grids are expanded, the indexes don't match up       	       	
>        	       	       	       	       	dgComment.scrollToIndex(dgComment.selectedIndex);
>        	       	       	       	       	dgComment.expandItem(comment, true, true);
>        	       	       	       	       	break;
>        	       	       	       	}
>        	       	       	}
>                 }
>  
> Expected Results:
>  
>        	itemMaskFreeList should not be null.
>  
> Workaround (if any):
>        	None



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