From 14189bd7e5f8de395aa7802057b6e70ec6fd09d8 Mon Sep 17 00:00:00 2001 From: smallchill Date: Wed, 1 May 2019 22:56:20 +0800 Subject: [PATCH] :zap: bug fix --- .../java/org/springblade/flow/engine/utils/FlowCache.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blade-ops/blade-flow/src/main/java/org/springblade/flow/engine/utils/FlowCache.java b/blade-ops/blade-flow/src/main/java/org/springblade/flow/engine/utils/FlowCache.java index 3a04eb1f..9dbbc0a6 100644 --- a/blade-ops/blade-flow/src/main/java/org/springblade/flow/engine/utils/FlowCache.java +++ b/blade-ops/blade-flow/src/main/java/org/springblade/flow/engine/utils/FlowCache.java @@ -63,10 +63,12 @@ public class FlowCache { * @return */ public static String getCategoryName(String category) { - if (Func.isEmpty(category)) { + String[] categoryArr = category.split(StringPool.UNDERSCORE); + if (categoryArr.length <= 1) { return StringPool.EMPTY; + } else { + return DictCache.getValue(category.split(StringPool.UNDERSCORE)[0], Func.toInt(category.split(StringPool.UNDERSCORE)[1])); } - return DictCache.getValue(category.split(StringPool.UNDERSCORE)[0], Func.toInt(category.split(StringPool.UNDERSCORE)[1])); } }