mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +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:
@@ -427,8 +427,13 @@ public class FeedServlet extends DSpaceServlet
|
|||||||
}
|
}
|
||||||
|
|
||||||
channel.setItems(items);
|
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)
|
catch (BrowseException e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user