Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache Flex 4.13.0, Squiggly 1.1
-
None
-
None
Description
Steps to reproduce: Run the attached application and click on the button twice, in quick succession. This simply calls SpellUI.enableSpelling() on a TextArea, and then SpellUI.disableSpelling() on the same text area - and all this happens before the dictionary has time to finish loading.
Error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.adobe.linguistics.spelling::SpellUI/cleanUp()
[C:\Users\evolverine\workspace\flex-utilities\Squiggly\main\SpellingUIEx\src\com\adobe\linguistics\spelling\SpellUI.as:565]
at com.adobe.linguistics.spelling::SpellUI$/disableSpelling() [C:\Users\evolverine\workspace\flex-utilities\Squiggly\main\SpellingUIEx\src\com\adobe\linguistics\spelling\SpellUI.as:206]
at Test/openCloseButton_changeHandler() [C:\Users\evolverine\Adobe Flash Builder 4.7\FLEX-34717\src\Test.mxml:21]
at Test/__openCloseButton_change() [C:\Users\evolverine\Adobe Flash Builder 4.7\FLEX-34717\src\Test.mxml:27]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent() [C:\Jenkins\workspace\flex-sdk_release-candidate\frameworks\projects\framework\src\mx\core\UIComponent.as:13688]
at spark.components.supportClasses::ToggleButtonBase/buttonReleased()[C:\Jenkins\workspace\flex-sdk_release-candidate\frameworks\projects\spark\src\spark\components\supportClasses\ToggleButtonBase.as:235]
at spark.components.supportClasses::ButtonBase/mouseEventHandler()[C:\Jenkins\workspace\flex-sdk_release-candidate\frameworks\projects\spark\src\spark\components\supportClasses\ButtonBase.as:1360]