| Summary: | NPE in org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.findMember(VirtualContainer.java:80) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Jason Sholl <jsholl> | ||||
| Component: | wst.common | Assignee: | Jason Sholl <jsholl> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Carl Anderson <ccc> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, david_williams, stryker | ||||
| Version: | 3.2 | Flags: | david_williams:
pmc_approved+
stryker: pmc_approved? (raghunathan.srinivasan) stryker: pmc_approved? (naci.dai) stryker: pmc_approved? (deboer) stryker: pmc_approved? (neil.hauge) stryker: pmc_approved? (kaloyan) ccc: review+ |
||||
| Target Milestone: | 3.2 RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | PMC_approved | ||||||
| Bug Depends on: | 313209 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Jason Sholl
Created attachment 168786 [details]
patch
I approve of this fix. should probably be put up for PMC ;) Am I reading the patch correctly, that the null structureEdit is ignored? Should it be logged? Since it is an error? Yes, the null StructureEdit should be ignored, and no it should not be logged. While it is rare that such a condition should exist, if it does it implies that the project is no longer a valid VirtualComponent project at all, e.g. the user deleted it or is in the process of deleting it. Because of the multithreaded nature of WTP and adopter products built on top of it, this sort of scenario can occur. By simply returning null, the code behaves as if the resource does not exist. Code further up the chain is then expected to null check the returned resource, because null is an expected return value documented in the API. ok, sounds good. Thanks for the extra explanation. code checked into head for wtp 3.2 rc2 |