Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331236 - [Compatibility] NPE when trying to add standalone view relative to editor area
Summary: [Compatibility] NPE when trying to add standalone view relative to editor area
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 M4   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 14:27 EST by Remy Suen CLA
Modified: 2010-11-26 14:30 EST (History)
0 users

See Also:


Attachments
ModeledPageLayout patch v1 (1.17 KB, patch)
2010-11-26 14:29 EST, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2010-11-26 14:27:05 EST
public void createInitialLayout(IPageLayout layout) {
  layout.addStandaloneView(IPageLayout.ID_RES_NAV, true, IPageLayout.LEFT, 0.25f,
      IPageLayout.ID_EDITOR_AREA);
}

java.lang.NullPointerException
	at org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout.insert(ModeledPageLayout.java:513)
	at org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout.insert(ModeledPageLayout.java:533)
	at org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout.insertView(ModeledPageLayout.java:354)
	at org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout.addStandaloneView(ModeledPageLayout.java:177)
Comment 1 Remy Suen CLA 2010-11-26 14:29:24 EST
Created attachment 183948 [details]
ModeledPageLayout patch v1
Comment 2 Remy Suen CLA 2010-11-26 14:30:03 EST
Fix released to CVS HEAD.