Improved enum parsing.
This commit is contained in:
parent
ce2342008a
commit
8342850d13
1 changed files with 10 additions and 1 deletions
|
@ -385,7 +385,16 @@ public class Configuration extends PathPropertyList
|
|||
{
|
||||
ProbeMode result;
|
||||
|
||||
result = ProbeMode.valueOf(StringUtils.upperCase(get("conf.probe.mode")));
|
||||
String value = get("conf.probe.mode");
|
||||
|
||||
if (StringUtils.isBlank(value))
|
||||
{
|
||||
result = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ProbeMode.valueOf(StringUtils.upperCase(value));
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue