| Summary: | ServerEditorSection's doSave() does not handle a null monitor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Steven Hung <sghung> | ||||||
| Component: | wst.server | Assignee: | Steven Hung <sghung> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Elson Yuen <eyuen7> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 3.3.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| See Also: | https://git.eclipse.org/r/109089 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Steven Hung
Created attachment 209098 [details]
v.1.0
Attached a patch for ensuring a null check is done in the doSave method
Created attachment 209267 [details]
Patch v1.1
Removed testing system out message from previous patch
In the R3_2_maintenance stream, this issue does not occur. Only in R3_3_maintenance and above.
I ran org.eclipse.wst.server.ui.tests.editor.ServerEditorPartTestCase pre-patch and got the NPE. After applying the patch, when running the test case, the NPE will not occur since it is caught in the doSave
The new patch looks good. Thanks for submitting the patch. Code dropped to 32M and HEAD. New Gerrit change created: https://git.eclipse.org/r/109089 |