From d316ec1146a2e46bd1694a4de997f81ac4d20357 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Sun, 11 Aug 2019 18:25:02 -0400 Subject: [PATCH] Fix NPE --- .../src/main/java/ca/uhn/fhir/jpa/dao/DaoRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoRegistry.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoRegistry.java index bae7a6f0bfb..0939a19fcf1 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoRegistry.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoRegistry.java @@ -138,7 +138,7 @@ public class DaoRegistry implements ApplicationContextAware, IDaoRegistry { @Override public boolean isResourceTypeSupported(String theResourceType) { - return mySupportedResourceTypes.contains(theResourceType); + return mySupportedResourceTypes == null || mySupportedResourceTypes.contains(theResourceType); } private void init() {