Community
Participate
Working Groups
Hello, There is a bug in the org.eclipse.m2m.atl.dsls plug-in, in The EMFTCSInjector class: A null pointer exception is thrown if there is no "problems" model in the parameter map. public Object inject(EMFModel target, InputStream source, Map params) throws IOException { ModelAdapter targetModelAdapter = new EMFInjectorAdapter(target); EMFModel problems = (EMFModel)params.get("problems"); if (problems != null) { // Here the "problems" model is adapted if it exists ModelAdapter problemsModelAdapter = new EMFInjectorAdapter(problems); params.put("problems", problemsModelAdapter); } EObject root = (EObject)new ParserLauncher().parse(targetModelAdapter, source, params); target.commitToResource(); problems.commitToResource(); // Here the "problems" model is saved even if it does not exist -> NPE. return root; } Best regards, Guillaume Doux.
Created attachment 149234 [details] Path which solves the problem Hello, This is the patch which solves the bug. B.R. Guillaume Doux.
The patch has been commited on both HEAD and 3_0 maintenance branches. Thanks for reporting / solving the bug !
Bug inactive - closing.