diff --git a/CHANGELOG.md b/CHANGELOG.md index a9cdec212..3dae44b11 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ------------------------------------------------------------------------------------------------------------- -# 5.8.13.M1 (2023-02-22) +# 5.8.13.M1 (2023-02-24) ### 🐣新特性 ### 🐞Bug修复 @@ -16,6 +16,7 @@ * 【core 】 修复Tailer文件内容跟随在调用stop后,文件依旧被占用问题(issue#I6GFD2@Gitee) * 【core 】 修复ReflectUtil.invokeRaw方法中参数类型转换动作未生效的问题(pr#2912@Github) * 【core 】 修复isXXX转换时的匹配问题(issue#I6H0XF@Gitee) +* 【core 】 修复MutableObj.equals空指针问题 ------------------------------------------------------------------------------------------------------------- diff --git a/hutool-core/src/main/java/cn/hutool/core/lang/mutable/MutableObj.java b/hutool-core/src/main/java/cn/hutool/core/lang/mutable/MutableObj.java index 4b772c26e..7fbc5e922 100644 --- a/hutool-core/src/main/java/cn/hutool/core/lang/mutable/MutableObj.java +++ b/hutool-core/src/main/java/cn/hutool/core/lang/mutable/MutableObj.java @@ -1,5 +1,7 @@ package cn.hutool.core.lang.mutable; +import cn.hutool.core.util.ObjUtil; + import java.io.Serializable; /** @@ -61,7 +63,7 @@ public class MutableObj implements Mutable, Serializable { } if (this.getClass() == obj.getClass()) { final MutableObj that = (MutableObj) obj; - return this.value.equals(that.value); + return ObjUtil.equals(this.value, that.value); } return false; }