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

Empty string locale handling in spark.formatters and spark.globalization classes is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: Formatters
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:

      An undefined, null and empty string values are all equal when it comes to ! operator. That is,

      var locale:String;
      locale = undefined;
      trace (!locale);
      locale = null;
      trace (!locale);
      locale = "";
      trace (!locale);

      All of above trace statements result true. We have lots of "if (!locale)" statements so we have to replace them with something like "if ((locale === undefined) || (locale === null))"

      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: