summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-BE-common/src/main')
-rw-r--r--ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/scheduler/policy/PolicyUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/scheduler/policy/PolicyUtil.java b/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/scheduler/policy/PolicyUtil.java
index aa4216bf..3e1c9415 100644
--- a/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/scheduler/policy/PolicyUtil.java
+++ b/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/scheduler/policy/PolicyUtil.java
@@ -66,10 +66,13 @@ public class PolicyUtil {
public static PolicyResponseWrapper wrapResponse (ClientResponse cres) {
String resp_str = "";
+ int statuscode = 0;
if ( cres != null ) {
resp_str = cres.readEntity(String.class);
+ statuscode = cres.getStatus();
}
- int statuscode = cres.getStatus();
+
+
PolicyResponseWrapper w = PolicyUtil.wrapResponse ( resp_str, statuscode );
return (w);
}