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

OO-555: check if the feed really exists before trying to index it

parent 5045d047
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,9 @@ public abstract class FeedRepositoryIndexer extends DefaultIndexer {
logDebug("Indexing: " + repoEntryName);
}
Feed feed = FeedManager.getInstance().getFeed(repositoryEntry.getOlatResource());
if(feed == null) {
return; //nothing to index
}
// Only index items. Feed itself is indexed by RepositoryEntryIndexer.
if (isLogDebugEnabled()) {
......@@ -71,7 +74,6 @@ public abstract class FeedRepositoryIndexer extends DefaultIndexer {
} catch (NullPointerException e) {
logError("Error indexing feed:" + repoEntryName, e);
}
}
/**
......
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