Error when i try to paste to textinput when the clipboard is null

Hi,
I get below error when I try to paste to a textinput when the clipboard doesn't have any value,
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at spark.components::RichEditableText/handlePasteOperation()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\RichEditableText.as:3611]
    at spark.components::RichEditableText/textContainerManager_flowOperationEndHandler()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\RichEditableText.as:4253]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flashx.textLayout.container::TextContainerManager/dispatchEvent()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1470]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flashx.textLayout.elements::TextFlow/dispatchEvent()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\TextFlow.as:773]
    at flashx.textLayout.edit::EditManager/doInternal()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:612]
    at flashx.textLayout.edit::EditManager/doOperation()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:462]
    at flashx.textLayout.edit::EditManager/pasteTextScrap()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:1376]
    at flashx.textLayout.edit::EditManager/editHandler()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:213]
    at flashx.textLayout.container::ContainerController/editHandler()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2374]
    at flashx.textLayout.container::TextContainerManager/editHandler()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1746]
Is there any solution for this?
Amila Domingo

Use FlexLib PromptingTextInput.  It doesnt have that problem.
http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/PromptingTextInput.html
This will work how you want it to.
See   http://code.google.com/p/flexlib/wiki/ComponentList
PromptingTextInput
The PromptingTextInput component is a small enhancement to standard TextInput. It adds the ability to specify a prompt value that displays when the text is empty, similar to how the prompt property of the ComboBox behaves when there is no selected value.
Documentation | Example | Contributor: Darron Schall

Similar Messages

Maybe you are looking for

  • Workflow to change file permission in SharePoint Online Document Library

    1.What are my options with SPD 2013 If I want to change a documents file permission in a workflow? 2.Where does SPO host 2013 Workfows? 3.If connecting to SPO Can I use Worklow Manager 1.0? 4.Will I need to host my Workflow Manager workflows on serve

  • TS1702 problems with flash based products not running on the ipad 2

    I have problems viewing certain web pages in safari, getting the message that the laatest version of flash player is not loaded, does anyone have any ideas on how to resolve this?

  • How to do a drill down whit 'REUSE_ALV_GRID_DISPLAY'

    Hi Guru, i must do a drill down with 2 field of a 'REUSE_ALV_GRID_DISPLAY' this is the program: CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'    EXPORTING     I_INTERFACE_CHECK                 = ' '     I_BYPASSING_BUFFER                = ' '     I_BUFFER_A

  • Change system wide spelling checker ???

    evidently OS X has a system wide spelling checker I have set my region correctly but see no place to adjust the spelling checker. It is by default to American English and I want to change it to British or Australian/New Zealand English what ever opti

  • Can't run programs installed under Administrator

    Our user DLU's run at the User level, so we install any extra software that isn't on our image using the local Administrator account. Sometimes users are prompted to enter the Administrator password just to run such software, but it seems to depend o