From f0738ac70629a7a1a06b8b6c036a2d39ed0a7076 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 3 Sep 2021 17:27:53 +1000 Subject: [PATCH] fix NPE cloning integer --- .../src/main/java/org/hl7/fhir/r5/model/UnsignedIntType.java | 3 ++- pom.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UnsignedIntType.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UnsignedIntType.java index 853e4930c..6cab2e4a9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UnsignedIntType.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UnsignedIntType.java @@ -89,7 +89,8 @@ public class UnsignedIntType extends IntegerType { @Override public UnsignedIntType copy() { - UnsignedIntType ret = new UnsignedIntType(getValue()); + Integer value = getValue(); + UnsignedIntType ret = value == null ? new UnsignedIntType() : new UnsignedIntType(value.intValue()); copyValues(ret); return ret; } diff --git a/pom.xml b/pom.xml index ae76821e5..80bc326f2 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ 5.1.0 - 1.1.67 + 1.1.68-SNAPSHOT 5.7.1 1.7.1 3.0.0-M4