Skip to content

Commit

Permalink
GlobalSerializeMapping增加null检查
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Aug 30, 2024
1 parent c459a0f commit baac5d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# 🚀Changelog

-------------------------------------------------------------------------------------------------------------
# 5.8.32(2024-08-29)
# 5.8.32(2024-08-30)

### 🐣新特性
* 【core 】 FileUtil.getTotalLines()支持CR换行符(issue#IAMZYR@Gitee)
* 【json 】 GlobalSerializeMapping增加null检查(issue#IANH1Y@Gitee)

### 🐞Bug修复
* 【http 】 修复getFileNameFromDisposition不符合规范问题(issue#IAKBPD@Gitee)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ synchronized public static void put(Type type, JSONDeserializer<?> deserializer)
* @return 自定义的序列化器或者{@code null}
*/
public static JSONSerializer<? extends JSON, ?> getSerializer(Type type){
if(null == serializerMap) {
if(null == type || null == serializerMap) {
return null;
}
return serializerMap.get(type);
Expand All @@ -103,7 +103,7 @@ synchronized public static void put(Type type, JSONDeserializer<?> deserializer)
* @return 自定义的反序列化器或者{@code null}
*/
public static JSONDeserializer<?> getDeserializer(Type type){
if(null == deserializerMap) {
if(null == type || null == deserializerMap) {
return null;
}
return deserializerMap.get(type);
Expand Down

0 comments on commit baac5d0

Please sign in to comment.