Merge pull request #1209 from hapifhir/do-20230406-fhirtestcases-132

Fix index out of bounds exception for https://github.com/FHIR/fhir-test-cases/pull/132
This commit is contained in:
Grahame Grieve 2023-04-12 06:30:47 +10:00 committed by GitHub
commit 4478e166a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}