Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-22913

Calling DragManager.doDrag() inside an AIR application Causes a Null Pointer Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK 4.5 (Release)
    • Drag and Drop
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. Inside an AIR app, inside a MouseEvent handler, call DragManager.doDrag()
      2. Start the app, and initiate a drag on your target (mine is an Image)

      Actual Results:

      An error occurs inside of NativeDragManagerImpl.as:doDrag():

      line 314: dragManagerStyleDeclaration object is null, thus a null pointer exception is thrown.

      What happens, according to the debugger, is when getStyleDeclaration("DragManager") is called on the line above, it returns null. If I change the string to "mx.managers.DragManager" and then execute the line (line 312), it returns a valid object for dragManagerStyleDeclaration.

      Workaround (if any): None

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: