Skip to content
Snippets Groups Projects
Commit a64be6aa authored by gnaegi's avatar gnaegi
Browse files

OO-725 fix npe when video configured with rating but no comments

parent e1617b97
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,9 @@ public class VideoDisplayController extends BasicController {
if ((showComments || showRating) && !ureq.getUserSession().getRoles().isGuestOnly()) {
CommentAndRatingSecurityCallback ratingSecCallback = new CommentAndRatingDefaultSecurityCallback(getIdentity(), false, false);
commentsAndRatingCtr = new UserCommentsAndRatingsController(ureq, getWindowControl(),entry.getOlatResource(), OresSubPath , ratingSecCallback,showComments, showRating, true);
commentsAndRatingCtr.expandComments(ureq);
if (showComments) {
commentsAndRatingCtr.expandComments(ureq);
}
listenTo(commentsAndRatingCtr);
mainVC.put("commentsAndRating", commentsAndRatingCtr.getInitialComponent());
}
......
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