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

OO-4555: empty sub-identifier for video comments is null, not ""

parent a36ba081
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,8 @@ public class VideoNotificationsHandler implements NotificationsHandler { ...@@ -127,7 +127,8 @@ public class VideoNotificationsHandler implements NotificationsHandler {
.getURLFromBusinessPathString(businessPath); .getURLFromBusinessPathString(businessPath);
List<SubscriptionListItem> items = new ArrayList<>(); List<SubscriptionListItem> items = new ArrayList<>();
List<UserComment> comments = commentAndRatingService.getComments(re.getOlatResource(), p.getSubidentifier()); String subIdentifier = StringHelper.containsNonWhitespace(p.getSubidentifier()) ? p.getSubidentifier() : null;
List<UserComment> comments = commentAndRatingService.getComments(re.getOlatResource(), subIdentifier);
for (UserComment comment : comments) { for (UserComment comment : comments) {
if (compareDate.before(comment.getCreationDate())) { if (compareDate.before(comment.getCreationDate())) {
String desc; String desc;
......
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