| Summary: | null resourceChangeListener causes org.eclipse.core.runtime.AssertionFailedException during shutdown | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Troy Bishop <tjbishop> | ||||||
| Component: | wst.server | Assignee: | Elson Yuen <eyuen7> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Angel Vera <arvera> | ||||||
| Severity: | minor | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.2 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| See Also: |
https://git.eclipse.org/r/109029 https://git.eclipse.org/r/109028 |
||||||||
| Whiteboard: | plan_draft_324 | ||||||||
| Attachments: |
|
||||||||
|
Description
Troy Bishop
Created attachment 179328 [details]
possible patch
> This is happening because ResourceManager#shutdown() is called directly during
> ServerPlugin#stop(BundleContext) and it doesn't check the state of the
> initialized flag.
>
To expand a bit, this is happening because the IResourceChangeListener instance (resourceChangeListener) and Preferences.IPropertyChangeListener (pcl) are both null... and removing a null listener causes the assertion failure shown above. Checking the state of the initialized flag prevents this error from happening.
Created attachment 192227 [details]
v1.0
Updated patch for adding null check on top of previous patch.
Code released to 32M and 33M Code released to 32M New Gerrit change created: https://git.eclipse.org/r/109029 New Gerrit change created: https://git.eclipse.org/r/109028 |