fix NPE cloning integer

This commit is contained in:
Grahame Grieve 2021-09-03 17:27:53 +10:00
parent bd6225cf9e
commit f0738ac706
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -19,7 +19,7 @@
<properties>
<hapi_fhir_version>5.1.0</hapi_fhir_version>
<validator_test_case_version>1.1.67</validator_test_case_version>
<validator_test_case_version>1.1.68-SNAPSHOT</validator_test_case_version>
<junit_jupiter_version>5.7.1</junit_jupiter_version>
<junit_platform_launcher_version>1.7.1</junit_platform_launcher_version>
<maven_surefire_version>3.0.0-M4</maven_surefire_version>