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

Setting errorString on AIR MX Window throws RTE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • Adobe Flex SDK 4.1 (Release)
    • None
    • mx: Window
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Found in 4.1.0.14649

      Steps to reproduce:
      1. Compile and run attached MXML file.
      2. CLick the button to launch the mx:Window

      Actual Results:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.core::Window/styleChanged()[E:\dev\4.x\frameworks\projects\airframework\src\mx\core\Window.as:2702]
      at mx.core::UIComponent/setBorderColorForErrorString()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6803]
      at mx.core::UIComponent/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7995]
      at mx.core::Container/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3214]
      at mx.core::Window/commitProperties()[E:\dev\4.x\frameworks\projects\airframework\src\mx\core\Window.as:2266]
      at mx.core::Window/open()[E:\dev\4.x\frameworks\projects\airframework\src\mx\core\Window.as:2973]
      at Flex41_14641/___Flex41_14641_Button1_click()[C:\Documents and Settings\pdehaan\My Documents\Adobe Flash Builder 4_new1\AIRohAIR\src\Flex41_14641.mxml:8]

      Expected Results:
      No RTE. Red border for error rect.

      Workaround (if any):
      Set the error string via ActionScript in creationComplete handler (instead of via MXML):

      Bad: <mx:Window errorString="errata" />
      Good: <mx:Window creationComplete="errorString='errata';" />

      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: