#35 fix rückgabe im erfolgsfall

This commit is contained in:
Andreas Penski (init) 2019-06-28 08:54:41 +02:00 committed by Andreas Penski
parent 88b3f01276
commit 3184ac5c00

View file

@ -136,7 +136,9 @@ public class DefaultCheck implements Check {
result.setSchemaViolations(convertErrors(t.getSchemaValidationResult().getErrors()));
}
result.setProcessingSuccessful(!t.isStopped() && t.isFinished());
result.getProcessingErrors().addAll(t.getReportInput().getProcessingError().getError());
if (t.getReportInput().getProcessingError() != null) {
result.getProcessingErrors().addAll(t.getReportInput().getProcessingError().getError());
}
result.setSchematronResult(t.getReportInput().getValidationResultsSchematron().stream()
.map(e -> e.getResults().getSchematronOutput()).collect(Collectors.toList()));
return result;