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:
parent
b262627559
commit
310b0d701d
1 changed files with 8 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Reference in a new issue