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

changing state causes: Cannot access a property or method of a null object reference.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK Previous
    • None
    • States
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Browser: Safari
      Language Found: English

    Description

      Unzip the attached File. Best should be to Debug Application

      Steps to reproduce:
      1. Start Debug
      2. First Time you need to enter first and last name (ie. A, B)
      3. Press "Speichern"
      4. Press third button "Verwenden"
      5. Above the header there is a button with label "Profiel wechseln", press
      6. Dialog get opened again in state "select"
      7. press button "bearbeiten"

      Actual Results:
      TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.states::AddItems/apply()[E:\dev\beta1\frameworks\projects\framework\src\mx\states\AddItems.as:529]
      at mx.core::UIComponent/applyState()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:9162]
      at mx.core::UIComponent/commitCurrentState()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:8933]
      at mx.core::UIComponent/setCurrentState()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:8834]
      at mx.core::UIComponent/set currentState()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:5388]
      at com.esentri.teachbib.view.dialogs::SelectProfileDialog/onEditProfile()[/Users/frankszilinski/Documents/sources/PLAYGROUND/TeachBib/src/main/flex/com/esentri/teachbib/view/dialogs/SelectProfileDialog.mxml:97]
      at com.esentri.teachbib.view.dialogs::SelectProfileDialog/___SelectProfileDialog_Button2_click()[/Users/frankszilinski/Documents/sources/PLAYGROUND/TeachBib/src/main/flex/com/esentri/teachbib/view/dialogs/SelectProfileDialog.mxml:176]

      Expected Results:
      The dialog "SelectProfileDialog.mxml" should be shown. In the dialog a delete ("Löschen") button exists. This button need to be displayed if dialog is in state edit otherwise in state create this button must not be visible.

      Workaround (if any):
      1. Open file "SelectProfileDialog.mxml" (com.esentri.teachbib.view.dialogs.SelectProfileDialog)
      2. Goto line 202 and delete the attribute includeIn="edit"

      Application should work appropriated.

      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: