From ba56de333654224d6bfede9f97030d7f6e6cb4de Mon Sep 17 00:00:00 2001 From: leijun Date: Thu, 28 Feb 2019 09:54:05 +0800 Subject: [PATCH] =?UTF-8?q?cgi=20=E6=8E=A5=E5=8F=A3=E6=9C=8D=E5=8A=A1=20?= =?UTF-8?q?=E9=98=B2=E7=A9=BA=E6=8C=87=E9=92=88=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/nis/util/ConfigServiceUtil.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/nis/util/ConfigServiceUtil.java b/src/main/java/com/nis/util/ConfigServiceUtil.java index b51a5f098..f5b43be90 100644 --- a/src/main/java/com/nis/util/ConfigServiceUtil.java +++ b/src/main/java/com/nis/util/ConfigServiceUtil.java @@ -727,14 +727,19 @@ public class ConfigServiceUtil { logger.info("cgi info:"+result); }else{ Map map = new HashMap(); - map = (Map) JSON.parse(result); - String error = map.get("error"); - if (!StringUtil.isEmpty(error)) { - error=cgiError(error); - throw new MaatConvertException(error); + if(!StringUtil.isEmpty(result)){ + map = (Map) JSON.parse(result); + String error = map.get("error"); + if (!StringUtil.isEmpty(error)) { + error=cgiError(error); + throw new MaatConvertException(error); + }else{ + throw new MaatConvertException(null); + } }else{ throw new MaatConvertException(null); } + } } catch (Exception e) { throw e;