Summary: | Invalid redundant null check warning | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Greg Watson <g.watson> |
Component: | Core | Assignee: | Ayushman Jain <amj87.iitr> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | Olivier_Thomann, remy.suen, srikanth_sankaran |
Version: | 3.7 | ||
Target Milestone: | 3.7 M7 | ||
Hardware: | PC | ||
OS: | Mac OS X - Carbon (unsup.) | ||
Whiteboard: |
Description
Greg Watson
2011-04-13 09:04:20 EDT
Both warnings are correct. The potential NPE in line 121 is because the value assigned to filePath from fIncludeEntry.getFullIncludePath() may be null. Again, at line 122, filePath can no longer be null. If it were null, line 121 would've thrown an NPE and the program would've exited. Hence, in no scenario can filepath still be null if line 122 is reached. Closing as invalid. Verified for 3.7 M7 |