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

Bug 361429

Summary: NPE registering a proxy genmodel
Product: [Modeling] EMFT Reporter: Ed Willink <ed>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: christian.dietrich.opensource
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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.