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

no-jira: fix a possible NPE

parent 864d403e
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ public class WikiCourseNodeIndexer extends FolderIndexer implements CourseNodeIn
String repoEntryName = "*name not available*";
try {
RepositoryEntry repositoryEntry = courseNode.getReferencedRepositoryEntry();
if(repositoryEntry == null) return;
repoEntryName = repositoryEntry.getDisplayname();
Wiki wiki = WikiManager.getInstance().getOrLoadWiki(courseNode.getReferencedRepositoryEntry().getOlatResource());
// loop over all wiki pages
......
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