From ea03a0147fb4e52f818a9823278f5f2f69e63da2 Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Mon, 10 Aug 2020 13:27:50 +0100 Subject: [PATCH] Adjusting check condition for ZipOutputStream Issue-ID: SDC-3226 Signed-off-by: KrupaNagabhushan Change-Id: I49e8916e23a7883832a02e6f294fd3f2a537f3a2 --- catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java index 241148b531..f378ca0288 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java @@ -278,8 +278,10 @@ public class CsarUtils { } //UID - Either responseFormat = getZipOutputStreamResponseFormatEither(zip, dependencies); - if (responseFormat != null) return responseFormat; + Either zipOutputStreamOrResponseFormat = getZipOutputStreamResponseFormatEither(zip, dependencies); + if (zipOutputStreamOrResponseFormat != null && zipOutputStreamOrResponseFormat.isRight()) { + return zipOutputStreamOrResponseFormat; + } //retrieve SDC.zip from Cassandra Either latestSchemaFilesFromCassandra = getLatestSchemaFilesFromCassandra(); -- 2.16.6