diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/clamp/clds/client/req/policy/PolicyClient.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/onap/clamp/clds/client/req/policy/PolicyClient.java b/src/main/java/org/onap/clamp/clds/client/req/policy/PolicyClient.java index 9fff4efc5..1e423ffe7 100644 --- a/src/main/java/org/onap/clamp/clds/client/req/policy/PolicyClient.java +++ b/src/main/java/org/onap/clamp/clds/client/req/policy/PolicyClient.java @@ -336,8 +336,12 @@ public class PolicyClient { try { Collection<PolicyConfig> response = getPolicyEngine().getConfig(configRequestParameters); for (PolicyConfig policyConfig : response) { - Integer version = Integer.valueOf(policyConfig.getPolicyVersion()); - versions.add(version); + if (policyConfig.getPolicyVersion() != null) { + Integer version = Integer.valueOf(policyConfig.getPolicyVersion()); + versions.add(version); + } else { + logger.warn("Policy version was null, unable to convert it to Integer"); + } } Collections.sort(versions); logger.info("Policy versions.size()=" + versions.size()); |