mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复LocalDateTime#parseDate未判断空问题问题
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user