Skip to content

Commit

Permalink
Fixed NPE in ReportCreateTaskHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 30, 2017
1 parent 7e50991 commit 805cbf4
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -227,7 +227,9 @@ public TaskRunResult run(Task task) {
saveReportOutputType(reportFilePath, parentReport, task, result);
LOGGER.trace("create report output type : {}", reportFilePath);

processPostReportScript(parentReport.getPostReportScript().getCode(), reportFilePath, result);
if (parentReport.getPostReportScript() != null) {
processPostReportScript(parentReport.getPostReportScript().getCode(), reportFilePath, result);
}
result.computeStatus();

} catch (Exception ex) {
Expand Down

0 comments on commit 805cbf4

Please sign in to comment.