summaryrefslogtreecommitdiffstats
path: root/cadi
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-05-29 09:32:51 -0500
committerInstrumental <jonathan.gathman@att.com>2019-05-29 09:33:32 -0500
commitba331a70f03bb5bf93fdb83a1ff221bdbf817749 (patch)
treea76e2cdb01f13d97ac2854e6708234ab69a50c45 /cadi
parentff1417ff60baee231a28272f9a16ef2c9c8ea0a2 (diff)
fix minor SONAR bug
Issue-ID: AAF-835 Change-Id: I46bc1fcd083a26fe45f10f6f69913840fe4cdbaf Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi')
-rw-r--r--cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java
index 5221d8ea..f4e0a688 100644
--- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java
+++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java
@@ -99,7 +99,8 @@ public class RegistrationCreator {
if (protocol!=null) {
locate.setProtocol(protocol);
List<String> ls = locate.getSubprotocol();
- if(ls==null || ls.isEmpty()) {
+ // ls cannot be null, per generated getSubprotocol code
+ if(ls.isEmpty()) {
String subprotocols = access.getProperty(Config.AAF_LOCATOR_SUBPROTOCOL + dot_le, null);
if(subprotocols==null) {
subprotocols = access.getProperty(Config.CADI_PROTOCOLS, null);