Skip to content
Snippets Groups Projects
Commit 01bebc71 authored by srosse's avatar srosse
Browse files

OO-1670: check if there are items before

parent 74f4fe0a
No related branches found
No related tags found
No related merge requests found
...@@ -616,7 +616,7 @@ public class ItemsController extends BasicController implements Activateable2 { ...@@ -616,7 +616,7 @@ public class ItemsController extends BasicController implements Activateable2 {
naviCtr.add(currentItem); naviCtr.add(currentItem);
// ... and also to the helper // ... and also to the helper
helper.addItem(currentItem); helper.addItem(currentItem);
if (feed.getItems().size() == 1) { if (feed.getItems() != null && feed.getItems().size() == 1) {
// First item added, show feed url (for subscription) // First item added, show feed url (for subscription)
fireEvent(ureq, ItemsController.FEED_INFO_IS_DIRTY_EVENT); fireEvent(ureq, ItemsController.FEED_INFO_IS_DIRTY_EVENT);
// Set the base URI of the feed for the current user. All users // Set the base URI of the feed for the current user. All users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment