| Summary: | NPE in AbstractWindowHandler.canExecute() | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bsd, daniel_megert, emoffatt, ob1.eclipse, pwebster |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Markus Keller
The code in question is:
if (shell == null) {
return false;
}
NSWindow window = shell.view.window(); // NPE
I can't reproduce this locally, but I guess 'shell.view' must be null. I'll put in a check, and a corresponding check in org.eclipse.ui.cocoa's AbstractWindowHandler too.
Committed fixes to the R4_development and R3_development branches. I hope I got this right. |