From aa9a984075d8ab5bbb41c714544885f0acbfa25b Mon Sep 17 00:00:00 2001 From: Diederik Muylwyk Date: Tue, 3 Sep 2019 18:44:52 -0400 Subject: [PATCH] Don't trust stored total when determining whether or not to expand. --- .../java/ca/uhn/fhir/jpa/term/BaseHapiTerminologySvcImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseHapiTerminologySvcImpl.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseHapiTerminologySvcImpl.java index cdba0d04b2d..e1cc30878b3 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseHapiTerminologySvcImpl.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseHapiTerminologySvcImpl.java @@ -518,7 +518,7 @@ public abstract class BaseHapiTerminologySvcImpl implements IHapiTerminologySvc, theExpansionComponent.addParameter().setName("offset").setValue(new IntegerType(theOffset)); theExpansionComponent.addParameter().setName("count").setValue(new IntegerType(theCount)); - if (theCount == 0 || total == 0) { + if (theCount == 0) { return; }