Skip to main content
JabbyPandaUA
Inspiring
January 20, 2011
Question

Regression - RTE #1009 when using Flex SDK 4.5.18623

  • January 20, 2011
  • 1 reply
  • 383 views

Hi all,

I receive the following RTE

Error #1009: Cannot access a property or method of a null object reference.

a tflashx.textLayout.edit::EditManager/handleUpdate()

at flashx.textLayout.edit::EditManager/finalizeDo()

at flashx.textLayout.edit::EditManager/doOperation()

at flashx.textLayout.edit::EditManager/flushPendingOperations()

at flashx.textLayout.edit::SelectionManager/enterFrameHandler()

when starting to typing a text into Spark TextInput control from the sample code placed below.

Please notice, that I am adding event listener for TextEvent.TEXT_INPUT event in capture phase

<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"                xmlns:s="library://ns.adobe.com/flex/spark"                xmlns:mx="library://ns.adobe.com/flex/mx"                creationComplete="application1_creationCompleteHandler()">     <fx:Script>         <![CDATA[                         protected function application1_creationCompleteHandler():void {                                mti.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, true, 0);             }                         private function handleTextInput(event:TextEvent) : void {                                                            mti.text = event.text;             }         ]]>     </fx:Script>        <s:TextInput id="mti"/>       </s:Application>

This topic has been closed for replies.

1 reply

Adobe Employee
January 21, 2011

Thanks for reporting this! I agree this is a bug, fix will be going in shortly.

- robin