| Summary: | NPE during Refactoring (ProjectRenameOperation) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Patric Rufflar <patric> | ||||
| Component: | jst.j2ee | Assignee: | Israel Gomez Delgado <israelgd> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | ccc | ||||
| Version: | 3.2.3 | Flags: | ccc:
review+
|
||||
| Target Milestone: | 3.3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Patric Rufflar
The line in question is:
if (cdg.getDisplayName().equals(oldProjectName)) {
So cdg.getDisplayName() must be returning a null. We should check for that.
Created attachment 193501 [details]
Null check added
the behavior is not several impacted. The problem is trying to get the Display name from the Deploy Descriptor, when the current name is null, the <display-name> attribute will not be changed, as if the user changed it manually before run the re-factor.
Committed to HEAD for WTP 3.3 M7 |