|
@@ -1,5 +1,6 @@
|
|
|
package com.yonge.cooleshow.biz.dal.wordfilter;
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -88,6 +89,9 @@ public class WordFilter {
|
|
|
*/
|
|
|
public boolean include(final String text, final int skip) {
|
|
|
boolean include = false;
|
|
|
+ if(StringUtils.isEmpty(text)){
|
|
|
+ return include;
|
|
|
+ }
|
|
|
char[] charset = text.toCharArray();
|
|
|
for (int i = 0; i < charset.length; i++) {
|
|
|
FlagIndex fi = getFlagIndex(charset, i, skip);
|