Null check in ActionScript/Flex

This is a language question rather than an IntelliJ IDEA question. I'm new to Flex development. In my code, if I enter the syntax:

if (_myVariable == null)


IntelliJ IDEA's inspection warns me that "Comparison may cause unexpected type coercoin". But it does not provide a quick fix. What is the proper way to do null and not null checks in ActionScript/JavaScript?

0
2 comments

This inspection was added for JavaScript and is disabled by default. You can see documentation and disable it by pressing Alt+Enter, Edit inspection profile setting.

0
Avatar
Permanently deleted user

Thanks Alexander.

0

Please sign in to leave a comment.