From f72dfa83ef5db086ba97a170ac9e1b2b2e1c850f Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 14 Sep 2023 19:31:15 -0700 Subject: [PATCH] fix for NPE in HAPI --- .../src/main/java/org/hl7/fhir/r5/context/ContextUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/ContextUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/ContextUtilities.java index abbd70a18..ac7bd8b47 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/ContextUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/ContextUtilities.java @@ -223,7 +223,7 @@ public class ContextUtilities implements ProfileKnowledgeProvider { } catch (Exception e) { if (!isSuppressDebugMessages()) { System.out.println("Unable to generate snapshot @2 for "+tail(sd.getUrl()) +" from "+tail(sd.getBaseDefinition())+" because "+e.getMessage()); - if (context.getLogger().isDebugLogging()) { + if (context.getLogger() != null && context.getLogger().isDebugLogging()) { e.printStackTrace(); } }