Skip to content

Commit

Permalink
[F] Fix null pointer on course
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Oct 1, 2019
1 parent d1dfc32 commit 78b8986
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public VeracrossCourse(VeracrossLegacyCourse other)
.teacherName(other.getTeacherFullName())
.id(other.getClassPk())
.assignmentsId(other.getEnrollmentPk())
.letterGrade(other.getPtdLetterGrade().replace(" ", ""))
.letterGrade(other.getPtdLetterGrade() == null ? null :
other.getPtdLetterGrade().replace(" ", ""))
.numericGrade(other.getPtdGrade())
.status(other.getStatus())
.build());
Expand Down

0 comments on commit 78b8986

Please sign in to comment.