| Summary: | [Perspectives] NPE in PerspectiveSwitcher for RCP app | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Keppler <michael.keppler> |
| Component: | UI | Assignee: | Nick Edgar <n.a.edgar> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | billy.biggs |
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
Can you annotate this PR with the call stack from your .log file? That would be a big help. |
The 3.0 release build raises a NPE in the PerspectiveSwitcher for an RCP application of mine that provides only its own perspective. If line 449 area.height = topBar.getLeft().getBounds().height; is changed to if (topBar.getLeft()!=null) { area.height = topBar.getLeft().getBounds().height; } then everything works fine because the calculation is done more than once, but during the first run there is no item in the topBar yet (causing the NPE).