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

ResourceManagerImpl returns "undefined" instead of null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Adobe Flex SDK 3.1 (Release)
    • None
    • i18n : Bundle Support
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. create empty resourcebundle for given locale
      2. call

      ResourceManager.getInstance().getString(bundleName, resourceName, parameters, currentLocale) 

      Actual Results:
      returns the string "undefined" (not the value undefined!, it's really a String)

      Expected Results:
      returns a null value as specified by the ResourceManager.getString(...) documentation

      Workaround (if any):

      if (resourceName in ResourceManager.getInstance().getResourceBundle(locale, bundleName).content) {
            return ResourceManager.getInstance().getResourceBundle(locale, bundleName).content[resourceName];
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: