| Summary: | NPE may be thrown due to no workbench windows being found with PDEPlugin.getActivePage() | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ankur_sharma, curtis.windatt.public |
| Version: | 3.7 | ||
| Target Milestone: | 3.7 M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Remy Suen
This can also happen when running certain jobs outside the UI thread. Fixed in HEAD, see LaunchTerminationStatusHandler and PDEPlugin. The convenience method from PDEPlugin will now return null instead of throwing an NPE. As the method is used in a number of places in PDE without a null check there is still the possibility of getting an NPE (though the stack trace will more accurately point to the problem). I added a null check to the status handler that is causing the specific NPE in this report. |