From 78b8986eb56d31ec5a1b23c680dd371b503c54b1 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 1 Oct 2019 17:26:46 -0400 Subject: [PATCH] [F] Fix null pointer on course --- .../java/org/hydev/veracross/sdk/model/VeracrossCourse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());