Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361429 - NPE registering a proxy genmodel
Summary: NPE registering a proxy genmodel
Status: NEW
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 12:11 EDT by Ed Willink CLA
Modified: 2011-10-19 15:02 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-10-19 12:11:48 EDT
If "registerGenModelFile" registers a genmodel that cannot be found, the resulting proxy causes an NPE.

Caused by: java.lang.NullPointerException
	at org.eclipse.emf.mwe.utils.GenModelHelper.registerGenModel(GenModelHelper.java:64)
	at org.eclipse.emf.mwe.utils.GenModelHelper.registerGenModel(GenModelHelper.java:39)
	at org.eclipse.emf.mwe.utils.StandaloneSetup.addRegisterGenModelFile(StandaloneSetup.java:340)

A proxy test, or hidden Resource.errors could provide a helpful error message.