Improved test about blank review wait time analyze.
This commit is contained in:
parent
78c3a0b152
commit
33ac985eb3
@ -25,6 +25,7 @@ import java.time.LocalTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.april.hebdobot.HebdobotException;
|
||||
import org.april.hebdobot.cron.CronSettings;
|
||||
import org.april.hebdobot.cron.CronValue;
|
||||
@ -356,7 +357,7 @@ public class HebdobotConfigFile extends Properties
|
||||
|
||||
String value = getProperty("review.waittime");
|
||||
|
||||
if ((value != null) && (value.matches(TIME_PATTERN)))
|
||||
if ((!StringUtils.isBlank(value)) && (value.matches(TIME_PATTERN)))
|
||||
{
|
||||
result = LocalTime.parse(value, DateTimeFormatter.ofPattern("HH'h'mm"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user