Protect against possible NPE when accessing existing gradebook comment

Description

ScormApplicationServiceImpl.updateGradebook() @ line 390:

This lambda isn't NPE safe, if the CommentDefinition returned from gbService.getAssignmentScoreComment() is null.

Some simple expansion and NPE protection solves the issue:

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created October 18, 2019 at 10:02 AM
Updated October 18, 2019 at 10:25 AM
Resolved October 18, 2019 at 10:25 AM