| Summary: | NPE in org.eclipse.wst.server.core.internal.ResourceManager.registerServer | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Troy Bishop <tjbishop> | ||||||
| Component: | wst.server | Assignee: | Elson Yuen <eyuen7> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Angel Vera <arvera> | ||||||
| Severity: | trivial | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.2 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| See Also: | https://git.eclipse.org/r/109030 | ||||||||
| Whiteboard: | plan_draft_324 | ||||||||
| Attachments: |
|
||||||||
|
Description
Troy Bishop
Created attachment 178984 [details]
possible patch
Just to clarify... I should have said: "If a workspace contains a .server file for a server type that does not exist for a WTP product then the following NPE will occur during classpath initialization:" ... There is also an NPE in ServerCore#isPublishRequired() for the same situation. The line of code: if (controller.supportsType(server.getServerType().getId())) will cause an NPE as the call to getServerType() will be null. Created attachment 192229 [details]
v1.0
This patch both NPE problem that has been reported on this defect.
Code committed to 3.2M Code released to 33M Code released to 32M New Gerrit change created: https://git.eclipse.org/r/109030 |