From 89732b4512d1b95093aebd17f4d7431544fb2b78 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 8 Oct 2021 07:49:30 +1100 Subject: [PATCH] fix bug related to logger in context --- .../hl7/fhir/convertors/context/VersionConvertorContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java index dc6166e73..6d66422fb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java @@ -126,7 +126,9 @@ public class VersionConvertorContext { */ public T getVersionConvertor() { T result = threadLocalVersionConverter.get(); - logger.debug(result.toString()); + if (result != null && logger != null) { + logger.debug(result.toString()); + } return result; } } \ No newline at end of file