| Summary: | NPE during Servlet creation operation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Chuck Bridgham <cbridgha> | ||||
| Component: | jst.j2ee | Assignee: | Chuck Bridgham <cbridgha> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, david_williams, jsholl | ||||
| Version: | 3.2 | Flags: | david_williams:
pmc_approved+
jsholl: pmc_approved? (raghunathan.srinivasan) jsholl: pmc_approved? (naci.dai) jsholl: pmc_approved? (deboer) jsholl: pmc_approved? (neil.hauge) jsholl: pmc_approved? (kaloyan) ccc: review+ |
||||
| Target Milestone: | 3.2 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Chuck Bridgham
Created attachment 168265 [details]
patch
I approve of this change. * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
A rare race condition can lead to NPEs and blow up the stack.
* Is there a work-around? If so, why do you believe the work-around is insufficient?
No
* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Testing with UI
* Give a brief technical overview. Who has reviewed this fix?
The race condition can be avoided with a simple null check. Carl and Jason have reviewed this fix.
* What is the risk associated with this fix?
None.
I'm not sure its correct to say "The race condition can be avoided ..." by a null check, but I agree, null checks should always be done in finally blocks before dispose. Committed to HEAD for WTP 3.2 RC1 |