Menu

#42 if "== null" and "!= null" are inverted ?

open
nobody
None
5
2003-08-05
2003-08-05
Anonymous
No

We have seen that "== null" is put where a "!= null" is
expected and viceversa.

For example:
if (selectedInstance.schedulingEnabled() != null
&& selectedInstance.schedulingEnabled().booleanValue
()) ...

Were uncompiled with JreversePro 1.4.1:
if (selectedInstance.schedulingEnabled() == null
&& selectedInstance.schedulingEnabled().booleanValue
())

Discussion


Log in to post a comment.

MongoDB Logo MongoDB