diff --git a/src/main/java/org/hydev/veracross/sdk/model/VeracrossCourse.java b/src/main/java/org/hydev/veracross/sdk/model/VeracrossCourse.java index 485aed0..cdd44a2 100644 --- a/src/main/java/org/hydev/veracross/sdk/model/VeracrossCourse.java +++ b/src/main/java/org/hydev/veracross/sdk/model/VeracrossCourse.java @@ -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());