Community
Participate
Working Groups
I got the following NPE when editing .mtl files (using Acceleo 3.3M3): java.lang.NullPointerException at org.eclipse.emf.ecore.util.EcoreEList.resolveProxy(EcoreEList.java:212) at org.eclipse.emf.ecore.util.EcoreEList.indexOf(EcoreEList.java:411) at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:463) at org.eclipse.emf.ecore.util.EcoreUtil.remove(EcoreUtil.java:3096) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverter.transformStepCopy(CST2ASTConverter.java:400) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverter.transformStepCopyBody(CST2ASTConverter.java:1502) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverter.transformStepCopy(CST2ASTConverter.java:301) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverter.transformStepCopyOwnedModuleElement(CST2ASTConverter.java:1314) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverter.transformStepCopy(CST2ASTConverter.java:193) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverter.createAST(CST2ASTConverter.java:169) at org.eclipse.acceleo.parser.AcceleoSourceBuffer.createAST(AcceleoSourceBuffer.java:310) at org.eclipse.acceleo.internal.ide.ui.editors.template.AcceleoSourceContent.createAST(AcceleoSourceContent.java:1295) at org.eclipse.acceleo.internal.ide.ui.editors.template.AcceleoSourceContent$AcceleoSourceBufferWithASTJob.runCreateAST(AcceleoSourceContent.java:286) at org.eclipse.acceleo.internal.ide.ui.editors.template.AcceleoSourceContent$AcceleoSourceBufferWithASTJob$1.run(AcceleoSourceContent.java:250) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Created attachment 216576 [details] Example reproducing the bug I get the same behaviour on Acceleo 3.2.1.v20120511-0335. I have attached a little workspace where the NPE shows frequently. Step to repoduce: 1. Open the T2.mtl file in acceleo.testcase.addon/src/acceleo.testcase.addon.mm2.m2t. 2. Edit the type of the aC3 argument at l. 26 from "C3" to "C" 3. Ctrl + Space to active auto-completion 4. A popup displays a NPE exception I am using Eclipse 3.6.2.M20110210-1200
Thanks for the detailled procedure, I could reproduce the issue.
Fixed with commit 957bc2488b68c8092ef4d0e96e4cfc52b54d86f6 ( http://git.eclipse.org/c/m2t/org.eclipse.acceleo.git/commit/?id=957bc2488b68c8092ef4d0e96e4cfc52b54d86f6 ) Thanks for your feedback.
An update site containing the fix is available here https://hudson.eclipse.org/hudson/job/m2t-acceleo-master/357/artifact/releng/org.eclipse.acceleo-updatesite/target/org.eclipse.acceleo-updatesite.zip
Closing resolved bugs