wiln / flexlib

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

SuperTabNavigator produces null pointer exception for certain containers in Flex 4 #310

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The bug is connected with component model change on Flex 4 (instead of 
Container use INavigatorContent for tab navigator components).

Statck trace:
TypeError: Error #1009: Nie można uzyskać dostępu do właściwości lub 
metody dla odniesienia do obiektu null.
    at flexlib.containers::SuperTabNavigator/reorderTabList()[C:\Users\radek\Documents\Aleksandra_Flex\code-flexbuilder\flexlib\src\flexlib\containers\SuperTabNavigator.as:1181]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()

Original issue reported on code.google.com by rsmog...@softperience.pl on 13 Jun 2010 at 9:47

GoogleCodeExporter commented 8 years ago
As attachment Eclipse patch.
Near the line 1181 make a change:       
FLEX_TARGET_VERSION::flex4 {
            var child:INavigatorContent = this.getChildAt(i) as INavigatorContent;
        }

        FLEX_TARGET_VERSION::flex3 {
            var child:Container = this.getChildAt(i) as Container;
        }
---
Radek
http://softperience.eu

Original comment by rsmog...@softperience.pl on 13 Jun 2010 at 9:52

GoogleCodeExporter commented 8 years ago
Sorry, small change added FLEX_TARGET_VERSION for imports :)

Original comment by rsmog...@softperience.pl on 13 Jun 2010 at 10:06

Attachments:

GoogleCodeExporter commented 8 years ago
Duplicate of #295

Original comment by rsmog...@softperience.pl on 13 Jun 2010 at 7:23