make sure the title is not null

This commit is contained in:
Athou
2013-04-20 12:27:52 +02:00
parent d66395c9c0
commit 35447ce3a3

View File

@@ -63,8 +63,10 @@ public class FeedUpdateService {
content.setContent(handleContent(content.getContent()));
String title = handleContent(content.getTitle());
content.setTitle(title.substring(0,
Math.min(2048, title.length())));
if (title != null) {
content.setTitle(title.substring(0,
Math.min(2048, title.length())));
}
entry.setInserted(Calendar.getInstance().getTime());
addFeedToEntry(entry, feed);