3168 added some nullcheck (#3169)
Co-authored-by: leif stawnyczy <leifstawnyczy@leifs-MacBook-Pro.local>
This commit is contained in:
parent
1478abac3a
commit
5cefa7a6cc
|
@ -23,6 +23,7 @@ package ca.uhn.fhir.rest.server.interceptor;
|
||||||
import ca.uhn.fhir.context.FhirContext;
|
import ca.uhn.fhir.context.FhirContext;
|
||||||
import ca.uhn.fhir.interceptor.api.Interceptor;
|
import ca.uhn.fhir.interceptor.api.Interceptor;
|
||||||
import ca.uhn.fhir.parser.IParser;
|
import ca.uhn.fhir.parser.IParser;
|
||||||
|
import ca.uhn.fhir.rest.api.RestOperationTypeEnum;
|
||||||
import ca.uhn.fhir.rest.api.server.RequestDetails;
|
import ca.uhn.fhir.rest.api.server.RequestDetails;
|
||||||
import ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException;
|
import ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException;
|
||||||
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
|
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
|
||||||
|
@ -310,12 +311,15 @@ public abstract class BaseValidatingInterceptor<T> extends ValidationResultEnric
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (theRequestDetails.getRestOperationType()) {
|
RestOperationTypeEnum opType = theRequestDetails.getRestOperationType();
|
||||||
|
if (opType != null) {
|
||||||
|
switch (opType) {
|
||||||
case GRAPHQL_REQUEST:
|
case GRAPHQL_REQUEST:
|
||||||
return null;
|
return null;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FhirValidator validator;
|
FhirValidator validator;
|
||||||
if (myValidator != null) {
|
if (myValidator != null) {
|
||||||
|
|
Loading…
Reference in New Issue