From: KrupaNagabhushan Date: Mon, 10 Aug 2020 12:27:50 +0000 (+0100) Subject: Adjusting check condition for ZipOutputStream X-Git-Tag: 1.7.1~41 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ea03a0147fb4e52f818a9823278f5f2f69e63da2;p=sdc.git Adjusting check condition for ZipOutputStream Issue-ID: SDC-3226 Signed-off-by: KrupaNagabhushan Change-Id: I49e8916e23a7883832a02e6f294fd3f2a537f3a2 --- 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();