aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/openecomp/vid/asdc/local
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-10-08 15:04:04 +0300
committerOfir Sonsino <os0695@att.com>2017-10-08 15:04:04 +0300
commit3274b39fef63c43c6eeb202e98b71b01e0f714ff (patch)
treeb4135727278ada8ca46848e7c1d99b20a2403bd6 /vid-app-common/src/main/java/org/openecomp/vid/asdc/local
parent1b796b793fd5a1187873f5a792b170dc16725761 (diff)
Improve SONAR coverage
Change-Id: I02e9535f96040cd038ef064ee5881c4c3e5e7bca Issue-ID: VID-72 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org/openecomp/vid/asdc/local')
-rw-r--r--vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java b/vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java
index d73c75b3..696e1890 100644
--- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java
+++ b/vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java
@@ -328,9 +328,14 @@ public class LocalAsdcClient implements AsdcClient {
JSONObject jsonServiceObject = categoryJsonArray.getJSONObject(i);
if (jsonServiceObject.get("uuid").equals(serviceUuid.toString())) {
toscaModelURL = jsonServiceObject.getString("toscaModelURL");
+ break;
}
}
+ if (toscaModelURL==null){
+ return null;
+ }
+
final InputStream toscaModelStream = getClass().getClassLoader().getResourceAsStream(toscaModelURL);
ClassLoader classLoader = getClass().getClassLoader();