Fix potential NPE 64/125764/2
authorvasraz <vasyl.razinkov@est.tech>
Mon, 15 Nov 2021 17:34:32 +0000 (17:34 +0000)
committerMichael Morris <michael.morris@est.tech>
Tue, 16 Nov 2021 11:11:36 +0000 (11:11 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I9138d498fce81692b286ec01b75e94e029b06c95
Issue-ID: SDC-3785

common-be/src/main/java/org/openecomp/sdc/be/csar/storage/StorageFactory.java
openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManager.java

index d120b3a..2be7b10 100644 (file)
@@ -85,7 +85,7 @@ public class StorageFactory {
                     return curr;
                 }
             }
-            return null;
+            return NONE;
         }
     }
 }
index 53728c0..e6fcaff 100644 (file)
@@ -89,7 +89,6 @@ public class SecurityManager {
     private static final Logger LOGGER = LoggerFactory.getLogger(SecurityManager.class);
     private static final String UNEXPECTED_ERROR_OCCURRED_DURING_SIGNATURE_VALIDATION = "Unexpected error occurred during signature validation!";
     private static final String COULD_NOT_VERIFY_SIGNATURE = "Could not verify signature!";
-    private static final String EXTERNAL_CSAR_STORE = "externalCsarStore";
 
     static {
         if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {