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

Bug 341044

Summary: Potential NPE in Mwe2Runner#run
Product: [Modeling] EMFT Reporter: Karsten Thoms <karsten.thoms>
Component: MWEAssignee: Karsten Thoms <karsten.thoms>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 Flags: karsten.thoms: indigo+
Version: 1.0.2   
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-03-26 18:30:11 EDT
If in the module in method
Mwe2Runner#run(String moduleName, Map<String, String> params, IWorkflowContext ctx)
cannot be found this results in an NPE when calling EcoreUtil#resolveAll(module).

When the result of findModule() is null there should be an exception thrown which indicates that the specified module was not found.
Comment 1 Karsten Thoms CLA 2011-03-27 03:58:16 EDT
Pushed to master