mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
#40 Fix NPE in Result.getReportDocument for malformed xml input
This commit is contained in:
parent
b44603b55f
commit
da70421620
9 changed files with 74 additions and 44 deletions
|
|
@ -94,7 +94,7 @@ public abstract class BaseScenario {
|
|||
* @return das passende Schema
|
||||
*/
|
||||
public Schema getSchema() {
|
||||
if (this.schema == null) {
|
||||
if (this.schema == null && getValidateWithXmlSchema() != null) {
|
||||
final List<String> schemaResources = getValidateWithXmlSchema().getResource().stream().map(ResourceType::getLocation)
|
||||
.collect(Collectors.toList());
|
||||
this.schema = this.repository.createSchema(schemaResources);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue