diff --git a/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java b/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java index 5c42289b26..f75b6920a2 100644 --- a/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java +++ b/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java @@ -404,7 +404,10 @@ public class XmindCaseParser { rc.append(replace(item.getTitle(), RC_REGEX)); rc.append("\n"); } else if (isAvailable(item.getTitle(), TAG_REGEX)) { - tags.add(replace(item.getTitle(), TAG_REGEX)); + String tag = replace(item.getTitle(), TAG_REGEX); + if (StringUtils.isNotEmpty(tag)) { + tags.add(tag); + } } else if (isAvailable(item.getTitle(), ID_REGEX)) { customId.append(replace(item.getTitle(), ID_REGEX)); } else {