From beb8ccdce6ab7a4720651ebbb5e87f09c93bc36c Mon Sep 17 00:00:00 2001 From: shizhendong Date: Wed, 13 Nov 2024 18:02:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20meta.json=20=E6=A0=BC=E5=BC=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=B8=8D=E5=BD=B1=E5=93=8D=E6=9F=A5=E7=9C=8B=20applic?= =?UTF-8?q?ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../geedge/asw/module/app/service/impl/GitServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/geedge/asw/module/app/service/impl/GitServiceImpl.java b/src/main/java/net/geedge/asw/module/app/service/impl/GitServiceImpl.java index 4f12815..13473a6 100644 --- a/src/main/java/net/geedge/asw/module/app/service/impl/GitServiceImpl.java +++ b/src/main/java/net/geedge/asw/module/app/service/impl/GitServiceImpl.java @@ -583,7 +583,12 @@ public class GitServiceImpl implements IGitService { ObjectLoader loader = repository.open(treeWalk.getObjectId(0)); String metaJsonStr = T.StrUtil.utf8Str(loader.getBytes()); metaJsonStr = T.StrUtil.emptyToDefault(metaJsonStr, T.StrUtil.EMPTY_JSON); - Map metaJsonMap = T.JSONUtil.toBean(metaJsonStr, Map.class); + Map metaJsonMap = T.MapUtil.empty(); + try { + metaJsonMap = T.JSONUtil.toBean(metaJsonStr, Map.class); + } catch (Exception e) { + log.error(e, "[listApplication] [meat.json format error] [applicationName: {}]", applicationName); + } Map m = T.MapUtil.newHashMap(true); m.putAll(metaJsonMap);