fix for NPE

This commit is contained in:
Grahame Grieve 2024-04-13 05:03:33 +10:00
parent 1f3d2838d9
commit d26ce8e10d
1 changed files with 1 additions and 1 deletions

View File

@ -7488,7 +7488,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
// first case: the type value set is wrong for primitive special types
for (OperationOutcomeIssueComponent iss : vr.getIssues()) {
if (iss.getDetails().getText().startsWith("Unable to resolve system - value set expansion has no matches for code 'http://hl7.org/fhirpath/System")) {
if (iss.hasDetails() && iss.getDetails().getText().startsWith("Unable to resolve system - value set expansion has no matches for code 'http://hl7.org/fhirpath/System")) {
return new ValidationResult("http://hl7.org/fhirpath/System", null, null, null);
}
}