mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-02 11:36:59 +00:00
@ -54,9 +54,8 @@ public class InjectParse {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Date parse(ConfigurationSection config, String path) {
|
public Date parse(ConfigurationSection config, String path) {
|
||||||
String value = "0000-00-00 00:00:00";
|
String value = config.getString(path) == null ? "0000-00-00 00:00:00" : config.getString(path);
|
||||||
try {
|
try {
|
||||||
value = config.getString(path);
|
|
||||||
return df.parse(value);
|
return df.parse(value);
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
throw new ConfigParseException(String.format(DATE_PARSE_ERROR, path, DATE_FORMAT, value), e);
|
throw new ConfigParseException(String.format(DATE_PARSE_ERROR, path, DATE_FORMAT, value), e);
|
||||||
|
Reference in New Issue
Block a user