From 33ac985eb3cbfa6a6d220ba6b7ef1308f26469df Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 19 May 2018 10:29:58 +0200 Subject: [PATCH] Improved test about blank review wait time analyze. --- src/org/april/hebdobot/cli/HebdobotConfigFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/april/hebdobot/cli/HebdobotConfigFile.java b/src/org/april/hebdobot/cli/HebdobotConfigFile.java index b245b88..bcea4bb 100644 --- a/src/org/april/hebdobot/cli/HebdobotConfigFile.java +++ b/src/org/april/hebdobot/cli/HebdobotConfigFile.java @@ -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")); }