Community
Participate
Working Groups
A NPE occurs in org.eclipse.sirius.ui.business.api.dialect.HierarchyLabelProvider.getText(Object)l62 when selecting mappings when a member of the VSM hierarchy has a null id or name. Steps to reproduce: 1-create a new odesign create a group/viewpoint/diagram/layer/container without settings ids. 2-Select the container and go to Import in the properties view. 3-Click on the button to select a Reused Node Mapping. The NPE occurs in error log.
Hi Pierre, I do not reproduce this issue according to the step to reproduce. Could you provide the VSM you used for reproducing this issue ?
Created attachment 271050 [details] file to reproduce
(In reply to Pierre Guilet from comment #0) > A NPE occurs in > org.eclipse.sirius.ui.business.api.dialect.HierarchyLabelProvider. > getText(Object)l62 > > when selecting mappings > > when a member of the VSM hierarchy has a null id or name. > > Steps to reproduce: > > 1-create a new odesign create a group/viewpoint/diagram/layer/container > without settings ids. > 2-Select the container and go to Import in the properties view. > 3-Click on the button to select a Reused Node Mapping. > > The NPE occurs in error log. The problem occurs when root layer has empty ID.
Thanks for the model and comment, Pierre. I triaged this as minor as the default layer is initialized with a default id.