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

OO-232: better check before indexing a structure node's page

parent 22e43f06
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ public class STCourseNodeIndexer extends FolderIndexer implements CourseNodeInde
ModuleConfiguration config = courseNode.getModuleConfiguration();
String displayType = config.getStringValue(STCourseNodeEditController.CONFIG_KEY_DISPLAY_TYPE);
String relPath = STCourseNodeEditController.getFileName(config);
if (relPath != null && displayType.equals(STCourseNodeEditController.CONFIG_VALUE_DISPLAY_FILE)) {
if (relPath != null && displayType != null && displayType.equals(STCourseNodeEditController.CONFIG_VALUE_DISPLAY_FILE)) {
VFSItem displayPage = course.getCourseFolderContainer().resolve(relPath);
if(displayPage instanceof VFSLeaf) {
doIndexVFSLeafByMySelf(courseNodeResourceContext, (VFSLeaf)displayPage, indexWriter, relPath);
......
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