Defensive coding to avoid a FeedException when there is no description

git-svn-id: http://scm.dspace.org/svn/repo/trunk@2258 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2007-10-23 10:34:47 +00:00
parent 30c3a05a38
commit 024ba53adf

View File

@@ -428,7 +428,12 @@ public class FeedServlet extends DSpaceServlet
channel.setItems(items);
return channel;
// If the description is null, replace it with an empty string
// to avoid a FeedException
if (channel.getDescription() == null)
channel.setDescription("");
return channel;
}
catch (BrowseException e)
{