From 1cfa1dece7aa44819006d08f2b6b04a03640a482 Mon Sep 17 00:00:00 2001 From: andrea <andrea.enrici@nokia.com> Date: Thu, 13 Jul 2017 09:08:06 +0200 Subject: [PATCH] corrected bug in jdialog for mapping communication patterns --- src/main/java/ui/window/JDialogCommPatternMapping.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ui/window/JDialogCommPatternMapping.java b/src/main/java/ui/window/JDialogCommPatternMapping.java index a2e098d5df..e2d53bc7b3 100644 --- a/src/main/java/ui/window/JDialogCommPatternMapping.java +++ b/src/main/java/ui/window/JDialogCommPatternMapping.java @@ -690,6 +690,7 @@ public class JDialogCommPatternMapping extends JDialog /* implements ActionListe if( cpMEC.equals( "VOID" ) || cpMEC.equals( "" ) ) { cpMECsCB.setSelectedIndex( 0 ); + cpMEC = CPMEC.MemoryCopy; } else { cpMECsCB.setSelectedIndex( new Vector<String>( Arrays.asList( CPMEC.CP_TYPES ) ).indexOf( cpMEC ) ); @@ -1457,6 +1458,9 @@ public class JDialogCommPatternMapping extends JDialog /* implements ActionListe cancelled = false; name = nameOfCP.getText(); cpMEC = (String)cpMECsCB.getSelectedItem(); + if( cpMEC.equals( "VOID" ) || cpMEC.equals( "" ) ) { + cpMEC = CPMEC.MemoryCopy; + } transferType1 = Arrays.asList( CPMEC.TRANSFER_TYPES ).indexOf(transferTypeCB1.getSelectedItem()); transferType2 = Arrays.asList( CPMEC.TRANSFER_TYPES ).indexOf(transferTypeCB2.getSelectedItem()); -- GitLab