I have rec开发者_Python百科ently upgraded from Flex SDK 3.3 to SDK 3.4. Now I suddenly get this error message throughout the application:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::FocusManager/focusInHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\FocusManager.as:601]
It occurs fairly at random, but most often when I click on a tab in a tabNavigator. The problem is fixed when I add the attribute 'focussable="false"' to the tabNavigator, but I'd like to keep the tabNavigator focussable, and I definately can't make all the elements in my app unfocussable.
Someone told me that this is a bug in the SDK. Is that true? If so, is there a workaround other than 'focussable="false"'?There are definitely issues of this kind when updating SDK's to 3.4. I've seen it on many other class types. Fixes I've found include rebuilding the project itself or rebuilding your workspace - in my experience it's a corruption in the workspace and not an issues in the SDK itself.
I've also seen a problem where included libraries you might be referencing were compiled using a previous library - specifically I've seen issues like this when mixing 3.2 and 3.3.
I'm not 100% sure this is your exact issue and I'm sorry for only offering anecdotes instead of being able to address the root cause, but in my experience this sort of thing can be caused by multiple environment-specific issues so it's difficult to address.
In my case the issue was around the "flash" package, but this sounds similar. I have a list of the solutions I've found on my blog, but your mileage may vary. Hope this helps - comment back if it doesn't.
精彩评论