Skip to content

Commit

Permalink
Add null check when setting RS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancrtr committed Jul 6, 2023
1 parent 12b5787 commit 2ba50ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ private TestResultUpload saveSubmissionToDb(UploadResponse response, Organizatio
if (response != null) {
var status = UploadResponse.parseStatus(response.getOverallStatus());

for (var error : response.getErrors()) {
error.setSource(ResultUploadErrorSource.REPORTSTREAM);
if (response.getErrors() != null) {
for (var error : response.getErrors()) {
error.setSource(ResultUploadErrorSource.REPORTSTREAM);
}
}

result =
Expand Down

0 comments on commit 2ba50ca

Please sign in to comment.