| Summary: | NPE when removing an EAR reference with no archiveName attribute defined | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Aidyl Kareh <amkareh> | ||||||
| Component: | jst.j2ee | Assignee: | Aidyl Kareh <amkareh> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | amkareh, ccc, jsholl | ||||||
| Version: | unspecified | Flags: | cbridgha:
review+
|
||||||
| Target Milestone: | 3.2.3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Aidyl Kareh
Created attachment 179789 [details]
Proposed Patch
Updated RemoveComponentFromEnterpriseApplicationOperation.updateEARDD() method so that it avoids using the dependentObject if it has no id set. Also added check to make sure the getArchiveName() method returned a non-null value before using it to get the matching module.
approved - please make sure we have junit coverage in this area Created attachment 179854 [details]
Updated Patch
Patch has been updated to replace using the <String>.isEmpty() method, which
is Java 6 specific, with a Java 5 equivalent.
code checked into 32M and HEAD for WTP 3.2.3 and 3.3 respectively. |