Community
Participate
Working Groups
I have the following option set to warning: Java -> Compiler -> Errors/Warnings -> Null references. A null reference warning appears in the following code, saying "The variable text may be null": boolean hasText = text != null && text.trim().length() != 0; boolean saveEnabled = hasText && !text.equals(savedText); // Warning here
*** This bug has been marked as a duplicate of 150123 ***