1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

- avoid exception when cannot read value (for old format)

This commit is contained in:
Alena Laskavaia 2009-05-29 21:11:37 +00:00
parent b262627559
commit 310b0d701d

View file

@ -370,7 +370,14 @@ public class MultiLaunchConfigurationDelegate extends LaunchConfigurationDelegat
el.setName((String) attrs.get(attr));
Object actionParam = null;
final EPostLaunchAction action = EPostLaunchAction.valueOf((String)attrs.get(getProp(index, ACTION_PROP)));
String actionStr = (String)attrs.get(getProp(index, ACTION_PROP));
EPostLaunchAction action;
try {
action = EPostLaunchAction.valueOf(actionStr);
} catch (Exception e) {
action = EPostLaunchAction.NONE;
}
if (action == EPostLaunchAction.DELAY) {
try {
actionParam = Integer.parseInt((String)attrs.get(getProp(index, ACTION_PARAM_PROP)));