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

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

parent 40176e02
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,11 @@ public class UserCommentsAndRatingsController extends BasicController implements
* @return
*/
long getCommentsCount() {
return commentsCount.longValue();
if (commentsCount != null) {
return commentsCount.longValue();
} else {
return 0l;
}
}
/**
......
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