修复一个小Bug

This commit is contained in:
小海
2020-03-29 14:17:29 +08:00
parent 23ee331609
commit 98430a34f6

View File

@@ -62,8 +62,7 @@ public class TagServiceImpl implements TagService {
}
String[] articleArray = tag.getArticles().split(",");
for (int i = 0; i < articleArray.length; i++) {
// FIXME :: bug
if (articleArray[i] == null || "".equals(articleArray)) {
if (articleArray[i] == null || "".equals(articleArray[i])) {
continue;
}
long articleID = Long.parseLong(articleArray[i]);