summaryrefslogtreecommitdiffstats
path: root/cadi/core
diff options
context:
space:
mode:
Diffstat (limited to 'cadi/core')
-rw-r--r--cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfo.java b/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfo.java
index 2d252ea9..b34d096d 100644
--- a/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfo.java
+++ b/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfo.java
@@ -224,8 +224,8 @@ public class SecurityInfo {
}
TrustManager tms[] = tmf.getTrustManagers();
- if(tms != null) {
- tm = new X509TrustManager[(tms == null) ? 0 : tms.length];
+ if(tms != null && tms.length>0) {
+ tm = new X509TrustManager[tms.length];
for(int i = 0; i < tms.length; ++i) {
try {
tm[i] = (X509TrustManager)tms[i];