You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/21 02:11:15 UTC

[jira] [Assigned] (FLEX-15851) ResourceManagerImpl returns "undefined" instead of null

     [ https://issues.apache.org/jira/browse/FLEX-15851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean reassigned FLEX-15851:
------------------------------------

    Assignee: Justin Mclean
    
> ResourceManagerImpl returns "undefined" instead of null
> -------------------------------------------------------
>
>                 Key: FLEX-15851
>                 URL: https://issues.apache.org/jira/browse/FLEX-15851
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: i18n : Bundle Support
>    Affects Versions: Adobe Flex SDK 3.1 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Justin Mclean
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1. create empty resourcebundle for given locale
> 2. call {code}ResourceManager.getInstance().getString(bundleName, resourceName, parameters, currentLocale) {code}
>  
>  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):
> {code}
> if (resourceName in ResourceManager.getInstance().getResourceBundle(locale, bundleName).content) {
>       return ResourceManager.getInstance().getResourceBundle(locale, bundleName).content[resourceName];
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira