Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Campesino2019-07-24 04:50:22 -0400
committerPatrick Tessier2019-08-08 05:30:14 -0400
commitda907ac662c39ee09f764d60075971df27d023e0 (patch)
treefc72ddc732a1a0c9835797abc46f58a70cda91f2 /plugins/uml
parentede5c76cc4a4e8e376e8a3ab7bea5c3ffa119a33 (diff)
downloadorg.eclipse.papyrus-da907ac662c39ee09f764d60075971df27d023e0.tar.gz
org.eclipse.papyrus-da907ac662c39ee09f764d60075971df27d023e0.tar.xz
org.eclipse.papyrus-da907ac662c39ee09f764d60075971df27d023e0.zip
Bug 549511 - [SequenceDiagram] Cannot undo the creation of a message
with a gate as MessageEnd Change-Id: I222053ae935eb2d2a96efa96522171d244586e64 Signed-off-by: Antonio Campesino <antonio.campesino.robles@ericsson.com>
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConfigureMessageEventCommand.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConfigureMessageEventCommand.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConfigureMessageEventCommand.java
index cff1416e517..b6fd2014db3 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConfigureMessageEventCommand.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConfigureMessageEventCommand.java
@@ -354,6 +354,9 @@ public class ConfigureMessageEventCommand extends ConfigureElementCommand {
// Remove the created message ends
if (null != createdMessageEnds && !createdMessageEnds.isEmpty()) {
for (final MessageEnd createdMessage : createdMessageEnds) {
+ if (createdMessage == null) {
+ continue;
+ }
final EObject container = createdMessage.eContainer();
if (container instanceof Interaction) {
((Interaction) container).getFragments().remove(createdMessage);

Back to the top