morrislchg / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Remove child from VAccordion causes exception #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a VAccordion add and 2 view states
2. Remove a child (accordionItem) form the VAccordion in one of the viewstates

What is the expected output? 

The accordion re-renders with the child removed

What do you see instead?

Exception :
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
flexlib.baseClasses::AccordionBase/drawHeaderFocus()[/Users/dougmccune/Documents
/Flex
Builder Moxie/flexlib/trunk/src/flexlib/baseClasses/AccordionBase.as:1327]
    at
flexlib.baseClasses::AccordionBase/commitSelectedIndex()[/Users/dougmccune/Docum
ents/Flex
Builder Moxie/flexlib/trunk/src/flexlib/baseClasses/AccordionBase.as:1399]
    at
flexlib.baseClasses::AccordionBase/commitProperties()[/Users/dougmccune/Document
s/Flex
Builder Moxie/flexlib/trunk/src/flexlib/baseClasses/AccordionBase.as:919]
    at
mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\frame
work\src\mx\core\UIComponent.as:5670]
    at
mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects
\framework\src\mx\managers\LayoutManager.as:519]
    at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\proje
cts\framework\src\mx\managers\LayoutManager.as:669]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\fra
mework\src\mx\core\UIComponent.as:8460]
    at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\fram
ework\src\mx\core\UIComponent.as:8403]

What version of the product are you using? 

Flex Builder 3, flexlib (latest as of 5/5/08)

On what operating system?

Windows Vista SP1.

Please provide any additional information below.

Original issue reported on code.google.com by gr...@bluetube.com on 6 May 2008 at 6:52

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 8 Jan 2009 at 5:06

GoogleCodeExporter commented 8 years ago
Hello,

I have the same problem but from Accordion class and not VAccordion when I 
remove
programmaticly all the children. But from the UI I haven't got this problem :

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
mx.containers::Accordion/drawHeaderFocus()[C:\autobuild\3.2.0\frameworks\project
s\framework\src\mx\containers\Accordion.as:1676]
    at
mx.containers::Accordion/commitSelectedIndex()[C:\autobuild\3.2.0\frameworks\pro
jects\framework\src\mx\containers\Accordion.as:1748]
    at
mx.containers::Accordion/commitProperties()[C:\autobuild\3.2.0\frameworks\projec
ts\framework\src\mx\containers\Accordion.as:1058]
    at mx.core::UIComponent/validateProperties()

Original comment by mickael....@gmail.com on 28 Feb 2009 at 8:03