Fix: Policy GUI not responding on opening 51/11651/2
authorAnaël Closson <ac2550@intl.att.com>
Mon, 11 Sep 2017 11:17:36 +0000 (13:17 +0200)
committerChristophe Closset <cc697w@intl.att.com>
Mon, 11 Sep 2017 13:07:35 +0000 (13:07 +0000)
A call to the backend method getSdcPropertiesByServiceUUIDForRefresh
is failing. This is due to invalid handling of Sdc messages introduced
with revision 13966ab288578be392c5d2c64d5a9d7b6f600327.

Change-Id: I1ade99f50a177d7db6042938c4f0734eba0071fd
Issue-Id: CLAMP-51
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
src/main/java/org/onap/clamp/clds/client/SdcCatalogServices.java

index d317671..5b9c5d3 100644 (file)
@@ -463,7 +463,7 @@ public class SdcCatalogServices {
 \r
             // To remove duplicate resources from serviceDetail and add valid\r
             // vfs to service\r
-            if (cldsSdcServiceDetail.getResources() != null) {\r
+            if (cldsSdcServiceDetail != null && cldsSdcServiceDetail.getResources() != null) {\r
                 List<CldsSdcResource> cldsSdcResourceList = removeDuplicateSdcResourceInstances(\r
                         cldsSdcServiceDetail.getResources());\r
                 if (cldsSdcResourceList != null && !cldsSdcResourceList.isEmpty()) {\r