Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
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))"