summaryrefslogtreecommitdiffstats
path: root/cadi/core
diff options
context:
space:
mode:
authorInstrumental <jcgmisc@stl.gathman.org>2018-04-25 17:01:52 -0500
committerInstrumental <jcgmisc@stl.gathman.org>2018-04-25 17:03:50 -0500
commitb024f3e32c0eb4406313ce78abec747a58312838 (patch)
tree172236eb1f2ffd5e04369679ab03b179651dea72 /cadi/core
parent0cf3f31e8dc170fa7629bb4cbe678295a1af13fd (diff)
Fix bug introduced by Sonar work
Issue-ID: AAF-256 Change-Id: I7885d8fed869893d653b05a09f1aa5f3016aebda Signed-off-by: Instrumental <jcgmisc@stl.gathman.org>
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];