Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 69084

Summary: [Perspectives] NPE in PerspectiveSwitcher for RCP app
Product: [Eclipse Project] Platform Reporter: Michael Keppler <michael.keppler>
Component: UIAssignee: 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:

Description Michael Keppler CLA 2004-06-30 17:32:58 EDT
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).
Comment 1 Debbie Wilson CLA 2004-07-05 10:37:18 EDT
Can you annotate this PR with the call stack from your .log file?  That would 
be a big help.

Comment 2 Nick Edgar CLA 2004-07-05 11:57:16 EDT

*** This bug has been marked as a duplicate of 68774 ***