| Summary: | Sirius decorator providers failing on Papyrus diagrams | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Camille Letavernier <cletavernier> | ||||
| Component: | Diagram | Assignee: | Maxime Porhel <maxime.porhel> | ||||
| Status: | CLOSED FIXED | QA Contact: | Julien Dupont <julien.dupont> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | julien.dupont, maxime.porhel | ||||
| Version: | 1.0.0 | Keywords: | triaged | ||||
| Target Milestone: | 1.0.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 435182 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Camille Letavernier
Hi Camille, Could you provide a reproduction case ? I see the potential NPE in the code, but it will be easier to validate the issue if we have a use case. I tried with Luna M7 +Papyrus M7 + Sirius M7 on several Papyrus diagram ans I did not managed to get the NPE. Could give us at least some steps or diagram type ? > Could you provide a reproduction case ? I see the potential NPE in the code, but it will be easier to validate the issue if we have a use case.
I had one model which was always failing on this decorator, but I don't remember which one. I had patched locally the NPE and it solved the issue. Now, if I revert the patch, I'm not able to reproduce the issue anymore. I'm not sure what changed
Created attachment 243238 [details]
Use case to check SubDiagramDecorator in Sirius.
I have attached a use case to check SubDiagramDecorator in Sirius. It will allow to check that the changes on the SubDiagramDecoratorProvider context declaration do not introduce regressions in Sirius.
Camille, could you indicate how to get the NPE in Papyrus ? We will be able to check it does not occur anymore.
See https://git.eclipse.org/r/#/c/26845/ (avoid the NPE) and https://git.eclipse.org/r/#/c/26846/ (provider context scope reduction) org.eclipse.sirius.diagram.ui.edit.api.part.IAbstractDiagramNodeEditPart and org.eclipse.sirius.diagram.ui.edit.api.part.IDiagramEdgeEditPart are two top-level interfaces to replace org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart in the context definition for Sirius descriptor providers extensions. It handles our primary edit parts: node, container, list, border node and edge. Fixed in commits . dc53b3e5af4bd35599c0f903b360472ecca50c05 . 5e649ff3e1bb21d645f9ef2b45fa507b4176437b . 5df8b58dd7472f89946c7803b3c17a42824c7ee7 Available in Sirius 1.0.0. |