mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user