From fb8def21aecc1372c69cb352ff375750533b8e67 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Tue, 14 Sep 2021 02:08:42 -0400 Subject: [PATCH] remove potential NPE --- .../ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java index 47ab01ccf34..a4447bff1bd 100644 --- a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java +++ b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java @@ -451,7 +451,7 @@ public class RuleBuilder implements IAuthRuleBuilder { private Collection myInCompartmentOwners; private Collection myAppliesToInstances; private RuleImplOp myRule; - private List myAdditionalSearchParamsForCompartmentTypes; + private List myAdditionalSearchParamsForCompartmentTypes = new ArrayList<>(); /** * Constructor