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

navigator.pushView(MyView) throws a null exception error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: ViewNavigator
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:
      1. Using an Observer pattern, based on what's being updated I call either navigator.pushView(MyView) or navigator.pushView(MyAltView) via a button click on the main screen.
      2. Add a button to the home screen where by clicking, you're updating a value that will run the update function of the Observer pattern.
      3. On MyView and MyAltView, have buttons that call navigator.popView() to return to the main screen.
      4. On the main screen, update the value that will run the update function again.

      Actual Results:
      All subsequent calls after the first will result in a null object reference error being thrown.

      Expected Results:
      The navigator will update to display the next view.

      Workaround (if any):
      Put the navigator.pushView in a try-catch block

      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: