From 8e71da73ba50ea08eedb2d50cdfe380dfdb2a027 Mon Sep 17 00:00:00 2001 From: tanghc Date: Thu, 19 Mar 2020 16:23:04 +0800 Subject: [PATCH] 3.1.0 --- .../gitee/sop/gatewaycommon/result/DefaultDataNameBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/result/DefaultDataNameBuilder.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/result/DefaultDataNameBuilder.java index 1cb5d0be..2a4c2d51 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/result/DefaultDataNameBuilder.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/result/DefaultDataNameBuilder.java @@ -23,6 +23,9 @@ public class DefaultDataNameBuilder implements DataNameBuilder { @Override public String build(String method) { + if (method == null) { + method = "error"; + } return method.replace(DOT, UNDERLINE) + DATA_SUFFIX; } }