This question is not related to any problem in particular. Just trying to know what's going on.
I have the following statement:
Integer myInt = null;
if(myInt!=null) {
// it's not entering here...
}
The execution flow normally, and the lines within 'if' statement are correctly not executed. However when highlighting and inspecting (ctrl+shift+i) myInt!=null instead of getting false I got the error within inspector stating:
myInt.intValue() null pointer exception
I wonder why Eclipse need a convertion to int.
UPDATE
I have corrected the sentence, stating that the inspector should return false. The whole point of question is why Eclipse is calling intValue within the inspector, and not a discussion about int or Integer.