prevent NPE

This commit is contained in:
Athou
2013-04-22 17:56:30 +02:00
parent bc072a3727
commit 8376b69f25

View File

@@ -25,6 +25,9 @@ public class FeedUtils {
}
public static String trimUnicodeSurrogateCharacters(String text) {
if (StringUtils.isBlank(text)) {
return null;
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < text.length(); i++) {
char ch = text.charAt(i);