| Summary: | null reference inappropriate report | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Felis Cattus <feles> |
| Component: | Core | Assignee: | Maxime Daniel <maxime_daniel> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
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