mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
make sure the title is not null
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user