mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +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));
|
el.setName((String) attrs.get(attr));
|
||||||
|
|
||||||
Object actionParam = null;
|
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) {
|
if (action == EPostLaunchAction.DELAY) {
|
||||||
try {
|
try {
|
||||||
actionParam = Integer.parseInt((String)attrs.get(getProp(index, ACTION_PARAM_PROP)));
|
actionParam = Integer.parseInt((String)attrs.get(getProp(index, ACTION_PARAM_PROP)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue