flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

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

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by j.matthe...@gmail.com on 2010-05-03T18:45:47

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/Development/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/frameworks/projects/framework/src/mx/core/UIComponent.as:11584] at mx.core::UIComponent/callLaterDispatcher()[/home/matt/Apps/flex-sdk-svn/frameworks/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.