diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/ByteUtils.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/ByteUtils.java index 44199bf67..bf66c5622 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/ByteUtils.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/ByteUtils.java @@ -18,8 +18,8 @@ public class ByteUtils { public static byte[] resourceToByteArray(T resource, boolean pretty, boolean isJson, boolean noXhtml) { ByteArrayOutputStream baos = null; byte[] byteArray = null; + baos = new ByteArrayOutputStream(); try { - baos = new ByteArrayOutputStream(); IParser parser = null; if (isJson) { parser = new JsonParser(); diff --git a/pom.xml b/pom.xml index 0071f570c..1b15f2d1f 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ 2.17.0 32.0.1-jre 6.4.1 - 1.5.25 + 1.5.26-SNAPSHOT 2.17.0 5.9.2 1.8.2