From 9a55346de59beb91f88a671769df97574fe30958 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 28 Mar 2020 06:13:31 +1100 Subject: [PATCH] fix for parsing nulls when validating --- .../src/main/java/org/hl7/fhir/r5/elementmodel/JsonParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/JsonParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/JsonParser.java index a8fdb0d6f..c94c46735 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/JsonParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/JsonParser.java @@ -243,6 +243,9 @@ public class JsonParser extends ParserBase { if (e instanceof JsonObject) { return "an object"; } + if (e instanceof JsonNull) { + return "null"; + } return "a primitive property"; }