make sure title fits in the database field

This commit is contained in:
Athou
2013-05-23 12:15:00 +02:00
parent 0d65471c83
commit 4935d4f1bc

View File

@@ -58,7 +58,7 @@ public class OPMLImporter {
outline.getText(), parent);
if (category == null) {
category = new FeedCategory();
category.setName(outline.getText());
category.setName(FeedUtils.truncate(outline.getText(), 128));
category.setParent(parent);
category.setUser(user);
feedCategoryDAO.save(category);