Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331062 - NPE with EModelService's getElementLocation(MUIElement) on a model within a perspective that's not under the application
Summary: NPE with EModelService's getElementLocation(MUIElement) on a model within a p...
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: Eric Moffatt CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 16:04 EST by Remy Suen CLA
Modified: 2010-11-25 12:43 EST (History)
0 users

See Also:


Attachments
EModelService tests patch v1 (1.13 KB, patch)
2010-11-24 16:05 EST, Remy Suen CLA
no flags Details | Diff
EModelService tests patch v2 (1.69 KB, patch)
2010-11-25 12:37 EST, Remy Suen CLA
no flags Details | Diff
EModelService patch v1 (3.38 KB, patch)
2010-11-25 12:42 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-24 16:04:26 EST
java.lang.NullPointerException
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.getElementLocation(ModelServiceImpl.java:740)
Comment 1 Remy Suen CLA 2010-11-24 16:05:05 EST
Created attachment 183802 [details]
EModelService tests patch v1
Comment 2 Remy Suen CLA 2010-11-25 12:37:54 EST
Created attachment 183871 [details]
EModelService tests patch v2

There's another case that will also fail with an NPE.
Comment 3 Remy Suen CLA 2010-11-25 12:42:55 EST
Created attachment 183872 [details]
EModelService patch v1
Comment 4 Remy Suen CLA 2010-11-25 12:43:43 EST
Fix and tests released to HEAD.