From 59b0f032cbef4407316409a9db0723fc70321f5d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 31 Jul 2020 12:48:54 +1000 Subject: [PATCH] fix for NPE in FHIRPath parser --- .../src/main/java/org/hl7/fhir/r5/utils/FHIRLexer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRLexer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRLexer.java index 9e4ce7ce1..e08acbefb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRLexer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRLexer.java @@ -71,7 +71,7 @@ public class FHIRLexer { private String name; public FHIRLexer(String source, String name) throws FHIRLexerException { - this.source = source; + this.source = source == null ? "" : source; this.name = name == null ? "??" : name; currentLocation = new SourceLocation(1, 1); next();