Skip to content

Conversation

@dvojtise
Copy link
Contributor

Description

In some graphical representation we may sometime get DNode model element without eResource (I don't really know why 😞 ), when used in GEMOC simulation,this raises NPE when it tries to get the permission to edit/create/delete the element
cf. org.eclipse.gemoc.executionframework.extensions.sirius.modelloaderebugPermissionAuthority

Changes

  • This PR adds simple verification to allow such edition if the element isn't in a resource (I consider that if it has no eResoure, this means the element is probably dynamic and can be edited.

Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
@dvojtise dvojtise added the bug label Jan 31, 2022
@dvojtise dvojtise merged commit 2894856 into master Feb 1, 2022
@dvojtise dvojtise deleted the prevent-crash-on-uncontained-graphical-element branch February 3, 2022 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants