Update AAI Assistant Tools for CCVPN Extenstion
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / aai / AaiQuery4Ccvpn2.java
index 9b13b8e..d025fea 100644 (file)
@@ -96,6 +96,9 @@ public class AaiQuery4Ccvpn2 {
 
     public JSONObject getSiteServiceInstance(String siteService) throws CorrelationException {
         String vnfId = getSiteVNFId(siteService);
+        if (vnfId == null) {
+            return null;
+        }
         JSONObject serviceInstanceInfo = getServiceInstanceByVnfId(vnfId);
         String serviceInstancePath = serviceInstanceInfo.getString("related-link");
         Response response = get(getHostAddr(), getPath(serviceInstancePath));