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

Bug 331062

Summary: NPE with EModelService's getElementLocation(MUIElement) on a model within a perspective that's not under the application
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Eric Moffatt <emoffatt>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
EModelService tests patch v1
none
EModelService tests patch v2
none
EModelService patch v1 none

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.