From d85c3a48648b3abbe348e8b7d1baeed4eb7be913 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Mon, 12 Jun 2023 18:28:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(configuration):=20AmisRespone=20?= =?UTF-8?q?=E7=9A=84=20metadata=20=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 防止 NPE --- .../service/configuration/entity/AmisResponse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/AmisResponse.java b/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/AmisResponse.java index 64a1b79..1356669 100644 --- a/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/AmisResponse.java +++ b/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/AmisResponse.java @@ -1,5 +1,6 @@ package com.lanyuanxiaoyao.service.configuration.entity; +import java.util.HashMap; import java.util.Map; /** @@ -64,7 +65,7 @@ public class AmisResponse { public static final class Builder { private Integer status = 0; private String message = ""; - private Map data; + private Map data = new HashMap<>(); private Builder() { }