4 Replies Latest reply on May 9, 2012 8:23 AM by Kerry Coffin

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

    amiladomingo

      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