Update src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java

Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
This commit is contained in:
Ibrohim Kholilul Islam
2022-06-23 12:00:55 +07:00
committed by GitHub
parent 41ba07a5e5
commit a026b1f390

View File

@@ -320,7 +320,7 @@ public class BaseJpaRestfulServer extends RestfulServer {
}
// Binary Storage
if (appProperties.getBinary_storage_enabled()) {
if (appProperties.getBinary_storage_enabled() && binaryAccessProvider.isPresent()) {
registerProvider(binaryAccessProvider.get());
getInterceptorService().registerInterceptor(binaryStorageInterceptor);
}