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