When you have not set the odf root page, the ODFURIResolver should return null when you call _getCoursePage method.
Actually this resolver return _resolver.resolveById("course://" + pagePath + "?rootId=" + odfRoot.getId() + "&courseId=" + course.getId());
with odfRoot = null
This code throw a NPE