From 38ea9a9fb55b3fbb1524483488829a4d39dafd18 Mon Sep 17 00:00:00 2001 From: dotasek Date: Thu, 6 Apr 2023 13:20:40 -0400 Subject: [PATCH] Fix index out of bounds exception --- .../fhir/validation/instance/type/SearchParameterValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/SearchParameterValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/SearchParameterValidator.java index bb62255b1..0d2fb598d 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/SearchParameterValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/SearchParameterValidator.java @@ -101,7 +101,7 @@ public class SearchParameterValidator extends BaseValidator { pass.get(i).setOperation(Operation.Union); pass.get(i).setOpNext(pass.get(i+1)); } - return pass.get(0).toString(); + return pass.size() > 0 ? pass.get(0).toString() : null; } }