You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the $validate operation with the hapi-fhir-jpaserver-starter a NP is raised by the UnknownCodeSystemWarningValidationSupport when providing a resource to validate:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: Failed to call access method: java.lang.NullPointerException
at ca.uhn.fhir.rest.server.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:272)
...
Caused by: java.lang.NullPointerException: null
at ca.uhn.fhir.context.support.DefaultProfileValidationSupport.fetchCodeSystemOrValueSet(DefaultProfileValidationSupport.java:182)
at ca.uhn.fhir.context.support.DefaultProfileValidationSupport.fetchCodeSystem(DefaultProfileValidationSupport.java:160)
at org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain.fetchCodeSystem(ValidationSupportChain.java:217)
at org.hl7.fhir.common.hapi.validation.support.BaseValidationSupportWrapper.fetchCodeSystem(BaseValidationSupportWrapper.java:86)
at org.hl7.fhir.common.hapi.validation.support.UnknownCodeSystemWarningValidationSupport.validateCodeInValueSet(UnknownCodeSystemWarningValidationSupport.java:40)
at org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain.validateCodeInValueSet(ValidationSupportChain.java:289)
at org.hl7.fhir.common.hapi.validation.support.BaseValidationSupportWrapper.validateCodeInValueSet(BaseValidationSupportWrapper.java:107)
Expected behavior
Don't throw a NP at L180 or don't call fetchCodeSystem from UnknownCodeSystemWarningValidationSupport with null as codesytem:
// System can take the form "https://url|version"Stringsystem = theSystem;
if (system.contains("|")) {
Environment (please complete the following information):
HAPI FHIR Version 5.5.1
OS: OSX
Additional context
Will provide a PR to fix the behaviour.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the $validate operation with the hapi-fhir-jpaserver-starter a NP is raised by the UnknownCodeSystemWarningValidationSupport when providing a resource to validate:
Expected behavior
Don't throw a NP at L180 or don't call fetchCodeSystem from UnknownCodeSystemWarningValidationSupport with null as codesytem:
Environment (please complete the following information):
Additional context
Will provide a PR to fix the behaviour.
The text was updated successfully, but these errors were encountered: