Community
Participate
Working Groups
Open or create a VSM with a diagram, a tree and a table descriptions. Add a TableNavigationTool Add a TreeNavigationTool Add a DiagramNavigationTool Its ElementSelectVariable should have a name set during its creation: if the specifier does not see this, he will have the following NPE (during diagram opening for example): java.lang.NullPointerException at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.createCompilationContext(AcceleoMTLInterpreter.java:521) at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.internalEvaluate(AcceleoMTLInterpreter.java:1175) at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.evaluateCollection(AcceleoMTLInterpreter.java:638) at org.eclipse.sirius.tools.internal.interpreter.ODesignGenericInterpreter.evaluateCollection(ODesignGenericInterpreter.java:175) at org.eclipse.sirius.business.internal.logger.RuntimeLoggerInterpreterImpl.evaluateCollection(RuntimeLoggerInterpreterImpl.java:161) at org.eclipse.sirius.diagram.ui.tools.internal.providers.decorators.SubDiagramDecorator.checkRepresentationNavigationDescription(SubDiagramDecorator.java:191) at org.eclipse.sirius.diagram.ui.tools.internal.providers.decorators.SubDiagramDecorator.checkRepresentationNavigationDescriptions(SubDiagramDecorator.java:176) at org.eclipse.sirius.diagram.ui.tools.internal.providers.decorators.SubDiagramDecorator.shouldHaveSubDiagDecoration(SubDiagramDecorator.java:139) at org.eclipse.sirius.diagram.ui.tools.internal.providers.decorators.SubDiagramDecorator.refresh(SubDiagramDecorator.java:108) at org.eclipse.gmf.runtime.diagram.ui.editpolicies.DecorationEditPolicy.refresh(DecorationEditPolicy.java:189) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$3.run(GraphicalEditPart.java:858) at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refresh(GraphicalEditPart.java:851) at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramElementContainerEditPart.refresh(AbstractDiagramElementContainerEditPart.java:203)
I see several parts for the correction: . look at the diagram navigation tool default names for variables . use the same for tree and table navigation tools . avoid the NPE in AcceleoMTLInterpreter (the correction might touch other interpreters or the CompoundInterpreter): do not try to use variable without name but log some warning/errors.
fixed on master (for sirius2.0) with the commit c6b7151a193e20ee63d48326a90f060c6d6edf87 but it still not fixed on 1.0.x
As indicated by Belqassim, this is already corrected on master
Cloned as bug 453052 to backport for Sirius 1.0.2.