wiln / flexlib

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

SuperTabNavigator errors when adding non-container children (Flex 4) #301

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a SuperTabNavigator
2. Add a child which does not extend Container, but which does implement
INavigatorContent

What is the expected output? What do you see instead?

Expected--Child is added and all is well
Actual:
An ActionScript error has occurred:
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
flexlib.containers::SuperTabNavigator/reorderTabList()[/Users/groumly/Developmen
t/workspace-3.5-flex4/FlexLib/src/flexlib/containers/SuperTabNavigator.as:1181]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at
mx.core::UIComponent/callLaterDispatcher2()[/home/matt/Apps/flex-sdk-svn/framewo
rks/projects/framework/src/mx/core/UIComponent.as:11584]
    at
mx.core::UIComponent/callLaterDispatcher()[/home/matt/Apps/flex-sdk-svn/framewor
ks/projects/framework/src/mx/core/UIComponent.as:11522]

What version of the product are you using? On what operating system?

2.5-flex4, on Linux

Please provide any additional information below.

Patch is attached, but is untested because I had trouble getting the svn
version to compile.

Original issue reported on code.google.com by j.matthe...@gmail.com on 3 May 2010 at 6:45

Attachments: