修复LocalDateTime#parseDate未判断空问题问题

This commit is contained in:
Looly
2023-11-14 08:50:43 +08:00
parent 5be66c636b
commit 7c1fafce99
2 changed files with 3 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ public class LocalDateTimeUtil {
* @since 5.3.10
*/
public static LocalDate parseDate(CharSequence text, DateTimeFormatter formatter) {
if (null == text) {
if (StrUtil.isBlank(text)) {
return null;
}
if (null == formatter) {