This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-42630 Avoid a possible NPE when catching errors during assessment…
… preview (sakaiproject#7435) DeliveryActionListener has a large try/catch block that catches RuntimeException and then adds an error the error log. If an exception is caught for an assessment preview, the real error is masked because the T&Q event logging code attempts to get an assessmentGradingId which is null (and really there's nothing meaningful to log here since it's a preview and the event log doesn't log previews). So we should check for that and throw the real exception earlier before attempting to update the event log.
- Loading branch information