mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
修复LocalDateTime#parseDate未判断空问题问题
This commit is contained in:
parent
5be66c636b
commit
7c1fafce99
@ -2,11 +2,12 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.24(2023-11-12)
|
# 5.8.24(2023-11-14)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
|
* 【core 】 修复LocalDateTime#parseDate未判断空问题问题(issue#I8FN7F@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.23(2023-11-12)
|
# 5.8.23(2023-11-12)
|
||||||
|
@ -318,7 +318,7 @@ public class LocalDateTimeUtil {
|
|||||||
* @since 5.3.10
|
* @since 5.3.10
|
||||||
*/
|
*/
|
||||||
public static LocalDate parseDate(CharSequence text, DateTimeFormatter formatter) {
|
public static LocalDate parseDate(CharSequence text, DateTimeFormatter formatter) {
|
||||||
if (null == text) {
|
if (StrUtil.isBlank(text)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (null == formatter) {
|
if (null == formatter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user