Skip to content

Commit

Permalink
fix: treats potential nullpointer exception after a lock exception (#…
Browse files Browse the repository at this point in the history
…5606)

fix: treats potential nullpointer exception
  • Loading branch information
filipelautert committed Feb 21, 2024
1 parent d5c3ead commit c41eff3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void run(CommandResultsBuilder resultsBuilder) throws Exception {
DatabaseChangeLog databaseChangeLog = (DatabaseChangeLog) commandScope.getDependency(DatabaseChangeLog.class);
addChangelogFileToMdc(getChangelogFileArg(commandScope), databaseChangeLog);
logDeploymentOutcomeMdc(changeExecListener, false, updateReportParameters);
updateReportParameters.getOperationInfo().setException(e.getCause().getMessage());
updateReportParameters.getOperationInfo().setException(e.getCause() != null ? e.getCause().getMessage() : e.getMessage());
resultsBuilder.addResult("statusCode", 1);
throw e;
} finally {
Expand Down

0 comments on commit c41eff3

Please sign in to comment.