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

ResourceManager.getInstance().getString() returns "undefined" instead of null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.5 (Release)
    • Apache Flex 4.14.1
    • Runtime Localization
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a resource bundle with key value pairs
      2. Load the resource bundle in your application and add them to the resourcemanager instance
      3. Use the ResourceManager.getInstance().getString() method with a key that is not in the resource bundle along with a local and put the return value in a string

      <s:Label text="{resourceManager.getString('text', 'not-a-key', null, 'en_US')}"/>
      

      Actual Results:
      The return value is undefined as a string

      Expected Results:
      The return (according to the docs) should be null

      Attachments

        Issue Links

          Activity

            People

              chrsmrtn Chris Martin
              adobejira Adobe JIRA
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: