Skip to content

Commit

Permalink
SAK-41645: Gradebook: Removing comment throws NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
hornersa authored and Miguel Pellicer committed Apr 10, 2019
1 parent c7dd6f9 commit 4d1d654
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.sakaiproject.gradebookng.business.util;

import org.apache.commons.lang.StringUtils;

import org.sakaiproject.gradebookng.business.GbEvent;
import org.sakaiproject.gradebookng.business.GbRole;

Expand Down Expand Up @@ -94,7 +96,7 @@ public static void postUpdateCommentEvent(Gradebook gradebook, Long assignmentId
String.valueOf(gradebook.getId()),
String.valueOf(assignmentId),
studentUid,
String.valueOf(comment.length()),
String.valueOf(StringUtils.length(comment)),
currentRole.toString().toLowerCase()
};

Expand Down

0 comments on commit 4d1d654

Please sign in to comment.