Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341044 - Potential NPE in Mwe2Runner#run
Summary: Potential NPE in Mwe2Runner#run
Status: RESOLVED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: 1.0.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: M7   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-26 18:30 EDT by Karsten Thoms CLA
Modified: 2011-03-27 03:58 EDT (History)
0 users

See Also:
karsten.thoms: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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